Frame 1
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
loadingBar._xscale = _local4;
loadedString = (" " + String(_local4)) + " %";
if (_local3 >= _local2) {
clearInterval(loadingCall);
gotoAndStop (2);
}
}
stop();
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
Frame 2
function create_level() {
bonusp = 0;
wheelie = 0;
dir = 1;
lc = 0;
pp = 0;
i = 2;
while (i <= level.nrWalls) {
var _local1 = game["v" + i];
name = "line" + i;
if (_local1.b == 1) {
gameclip.attachMovie("bounce", name, d);
} else if (_local1.d == 0) {
if (_local1.s == 1) {
if (_local1.t == 0) {
gameclip.attachMovie("linest0", name, d);
} else if (_local1.t == 1) {
gameclip.attachMovie("linest1", name, d);
}
} else if (_local1.t == 99) {
gameclip.attachMovie("linet0", name, d);
gameclip[name]._alpha = 0;
} else if (_local1.t == 0) {
gameclip.attachMovie("linet0", name, d);
} else if (_local1.t == 1) {
gameclip.attachMovie("linet1", name, d);
} else if (_local1.t == 2) {
gameclip.attachMovie("squaret0", name, d);
} else if (_local1.t == 3) {
gameclip.attachMovie("squaret1", name, d);
} else if (_local1.t == 6) {
gameclip.attachMovie("linet6", name, d);
} else if (_local1.t == 7) {
gameclip.attachMovie("linet7", name, d);
}
} else if (_local1.t == 2) {
gameclip.attachMovie("squared1", name, d);
} else {
gameclip.attachMovie("lined1", name, d);
}
d++;
gameclip[name]._x = game["v" + i].p0.x;
gameclip[name]._y = game["v" + i].p0.y;
var _local2 = game["v" + i].p1.x - game["v" + i].p0.x;
if (((_local1.t >= 2) && (_local1.t != 6)) && (_local1.t != 7)) {
var _local4 = game["v" + (i + 1)].p1.y - game["v" + (i + 1)].p0.y;
} else {
var _local4 = game["v" + i].p1.y - game["v" + i].p0.y;
}
var _local5 = Math.sqrt((_local2 * _local2) + (_local4 * _local4));
if (((_local1.t >= 2) && (_local1.t != 6)) && (_local1.t != 7)) {
gameclip[name]._xscale = _local2 / 2;
gameclip[name]._yscale = _local4 / 2;
} else {
if (_local1.d != 1) {
gameclip[name]._xscale = _local5 / 2;
}
gameclip[name]._rotation = (Math.atan(_local4 / _local2) * 180) / Math.PI;
if (_local2 < 0) {
gameclip[name]._rotation = gameclip[name]._rotation + 180;
if (_local1.s) {
r = gameclip[name]._rotation + 180;
if (r > 359) {
r = r - 360;
}
gameclip[name]._x = gameclip[name]._x - (11 * Math.sin((r / 180) * Math.PI));
gameclip[name]._y = gameclip[name]._y + (11 * Math.cos((r / 180) * Math.PI));
}
}
}
game["v" + i].clip = gameclip[name];
i++;
}
i = 1;
while (i <= level.nrCircles) {
var _local1 = game["c" + i];
name = "circle" + i;
if (_local1.t == 99) {
gameclip.attachMovie("circlet0", name, d);
gameclip[name]._alpha = 0;
} else if (_local1.t == 0) {
gameclip.attachMovie("circlet0", name, d + 1000);
} else if (_local1.t == 1) {
gameclip.attachMovie("circlet1", name, d + 1000);
} else if (_local1.t == 3) {
gameclip.attachMovie("circlet3", name, d + 1000);
}
d++;
gameclip[name]._x = game["c" + i].p0.x;
gameclip[name]._y = game["c" + i].p0.y;
gameclip[name]._xscale = _local1.r * 4;
gameclip[name]._yscale = _local1.r * 4;
game["c" + i].clip = gameclip[name];
i++;
}
i = 1;
while (i <= level.nrArcs) {
var _local3 = 1;
var _local1 = game["a" + i];
name = "arc" + i;
r = Math.sqrt((_local1.p1.x - _local1.p0.x) * (_local1.p1.x - _local1.p0.x));
if (_local1.p0.y > ((800 - r) - 10)) {
if ((_local1.ang1 + _local1.ang2) == 270) {
gameclip.attachMovie("arct3", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
} else if ((_local1.ang1 + _local1.ang2) == 450) {
gameclip.attachMovie("arct3", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
_local3 = -1;
} else if ((_local1.ang1 + _local1.ang2) == 315) {
gameclip.attachMovie("arct4", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
} else if ((_local1.ang1 + _local1.ang2) == 405) {
gameclip.attachMovie("arct4", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
_local3 = -1;
}
} else if ((_local1.ang1 + _local1.ang2) == 270) {
gameclip.attachMovie("arct1", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
} else if ((_local1.ang1 + _local1.ang2) == 450) {
gameclip.attachMovie("arct1", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
_local3 = -1;
} else if ((_local1.ang1 + _local1.ang2) == 315) {
gameclip.attachMovie("arct2", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
} else if ((_local1.ang1 + _local1.ang2) == 405) {
gameclip.attachMovie("arct2", name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
_local3 = -1;
}
gameclip[name]._xscale = (_local1.r / 2) * _local3;
gameclip[name]._yscale = _local1.r / 2;
d++;
game["a" + i].clip = gameclip[name];
i++;
}
i = 1;
while (i <= level.nrStars) {
var _local1 = game["star" + i];
name = "starob" + i;
gameclip.attachMovie("star", name, d);
gameclip[name]._x = _local1.p0.x - 20;
gameclip[name]._y = _local1.p0.y - 20;
d++;
game["star" + i].clip = gameclip[name];
i++;
}
i = 1;
while (i <= level.nrSos) {
var _local1 = game["so" + i];
name = "sob" + i;
clip = "so" + _local1.type;
gameclip.attachMovie(clip, name, d);
gameclip[name]._x = _local1.p0.x;
gameclip[name]._y = _local1.p0.y;
d++;
game["so" + i].clip = gameclip[name];
i++;
}
i = -3;
while (i <= 29) {
name = "ground" + i;
gameclip.attachMovie("ground", name, d++);
gameclip["ground" + i]._x = i * 150;
gameclip["ground" + i]._y = game.v1.p0.y;
i++;
}
game.v1.clip = gameclip.ground1;
name = "flag1";
gameclip.attachMovie("flag", name, d++);
gameclip[name]._x = game.cp1.p0.x;
gameclip[name]._y = game.cp1.p0.y;
}
function resetBars() {
speedbar.removeMovieClip();
hbar.removeMovieClip();
cbar.removeMovieClip();
showI.removeMovieClip();
}
function updateBike() {
var _local2 = {};
_local2.p0 = ob2.p1;
_local2.vx = ob2.p1.x - ob.p1.x;
_local2.vy = ob2.p1.y - ob.p1.y;
_local2 = CalcVector(_local2, false);
_local2.angle = (Math.atan(_local2.vy / _local2.vx) * 180) / Math.PI;
if ((_local2.vx > 0) && ((_local2.vy > 0) || (_local2.vy < 0))) {
_local2.angle = _local2.angle + 180;
}
_root.mc_racer._rotation = _local2.angle;
spellebutton.swapDepths(99999);
}
function getTop5(id) {
hBox.sHigh.text = "Highscores laden...";
top5Data = new LoadVars();
top5Data.level = id;
top5Data.sendAndLoad("highscore_view.php", top5Data, "POST");
top5Data.onLoad = function (succes) {
if (succes) {
hBox.sHigh.text = (((((((((((((((((("1. " + top5Data.name1) + " -- ") + top5Data.time1) + "\n2. ") + top5Data.name2) + " -- ") + top5Data.time2) + "\n3. ") + top5Data.name3) + " -- ") + top5Data.time3) + "\n4. ") + top5Data.name4) + " -- ") + top5Data.time4) + "\n5. ") + top5Data.name5) + " -- ") + top5Data.time5;
} else {
hBox.sHigh.text = "Om technische redenen zijn de highscores tijdelijk niet beschikbaar.";
}
};
}
function sendEmail(email) {
sendData = new LoadVars();
sendData.email = email;
sendData.sendAndLoad("email_add.php", sendData, "POST");
sendData.onLoad = function (succes) {
if (succes) {
_root.nextFrame();
}
};
}
function sendScore(id, nn, timeStr) {
sendData = new LoadVars();
sendData.level = id;
sendData.name = nn;
sendData.time = timeStr;
sendData.sendAndLoad("highscore_add.php", sendData, "POST");
sendData.onLoad = function (succes) {
if (succes) {
getTop5(id);
} else {
hBox.sHigh.text = "Om technische redenen zijn de highscores tijdelijk niet beschikbaar.";
}
};
}
function sendChallenge(id, nn, timeStr) {
eSend = new LoadVars();
if ((((((((((_root.emailInput.length < 6) || (_root.emailInput.indexOf(",") >= 0)) || (_root.emailInput.indexOf(";") >= 0)) || (_root.emailInput.indexOf(":") >= 0)) || (_root.emailInput.indexOf("/") >= 0)) || (_root.emailInput.indexOf(" ") >= 0)) || (_root.emailInput.indexOf("@") <= 0)) || (_root.emailInput.indexOf("@") != _root.emailInput.lastIndexOf("@"))) || (_root.emailInput.lastIndexOf(".") < _root.emailInput.indexOf("@"))) || ((_root.emailInput.lastIndexOf(".") + 3) > _root.emailInput.length)) {
_root.showText = "Het emailadres klopt niet.";
} else {
eSend.toEmail = toEmail.text;
eSend.to = to.text;
eSend.from = from.text;
eSend.time = timeStr;
eSend.level = id;
eSend.send("sendEmailChallenge2.php", eSend, "POST");
gotoAndStop(frame + 1);
}
}
function deadAdd180() {
var _local1 = {};
_local1.p0 = ob2.p1;
_local1.vx = ob2.p1.x - ob.p1.x;
_local1.vy = ob2.p1.y - ob.p1.y;
_local1 = CalcVector(_local1, false);
_local1.angle = (Math.atan(_local1.vy / _local1.vx) * 180) / Math.PI;
if ((_local1.vx > 0) && ((_local1.vy > 0) || (_local1.vy < 0))) {
return(true);
}
}
function CalcVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function findIntersection(v1, v2) {
var _local2 = {};
_local2.vx = v1.p1.x - v2.p0.x;
_local2.vy = v1.p1.y - v2.p0.y;
var _local6 = (_local2.vx * v2.dx) + (_local2.vy * v2.dy);
v1.p = 2;
if (_local6 < 0) {
var _local5 = _local2;
v1.p = 0;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local6 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local6 > 0) {
v1.p = 1;
var _local5 = _local4;
} else {
v1.p = 2;
var _local5 = projectVector(_local2, v2.lx, v2.ly);
}
}
return(_local5);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
function IntersectionPoint(v1, v2) {
v3 = {vx:v2.p0.x - v1.p0.x, vy:v2.p0.y - v1.p0.y};
var _local2 = perP(v3, v2) / perP(v1, v2);
ip = {};
ip.x = v1.p0.x + (v1.vx * _local2);
ip.y = v1.p0.y + (v1.vy * _local2);
return(ip);
}
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function ball2ball(b1, b2) {
var _local1 = {};
_local1.vx = b1.p1.x - b2.p0.x;
_local1.vy = b1.p1.y - b2.p0.y;
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.dx = _local1.vx / _local1.len;
_local1.dy = _local1.vy / _local1.len;
return(_local1);
}
function ball2ball_ap(b1, b2) {
var _local1 = {};
_local1.vx = b1.p1.x - b2.x;
_local1.vy = b1.p1.y - b2.y;
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.dx = _local1.vx / _local1.len;
_local1.dy = _local1.vy / _local1.len;
return(_local1);
}
function onLine(v1, ob) {
var _local1 = {};
_local1.p0 = v1.p0;
_local1.p1 = ob.p1;
CalcVector(_local1, true);
rc = _local1.vy / _local1.vx;
rc2 = v1.vy / v1.vx;
if (rc > rc2) {
return(false);
}
return(true);
}
function CalcVector(v, frompoints) {
if (frompoints) {
v.vx = v.p1.x - v.p0.x;
v.vy = v.p1.y - v.p0.y;
} else {
v.p1.x = v.p0.x + v.vx;
v.p1.y = v.p0.y + v.vy;
}
v.len = Math.sqrt((v.vx * v.vx) + (v.vy * v.vy));
if (v.len > 0) {
v.dx = v.vx / v.len;
v.dy = v.vy / v.len;
} else {
v.dx = 0;
v.dy = 0;
}
v.rx = -v.dy;
v.ry = v.dx;
v.lx = v.dy;
v.ly = -v.dx;
return(v);
}
function findIntersection(v1, v2) {
var _local2 = {};
_local2.vx = v1.p1.x - v2.p0.x;
_local2.vy = v1.p1.y - v2.p0.y;
var _local6 = (_local2.vx * v2.dx) + (_local2.vy * v2.dy);
v1.p = 2;
if (_local6 < 0) {
var _local5 = _local2;
v1.p = 0;
} else {
var _local4 = {};
_local4.vx = v1.p1.x - v2.p1.x;
_local4.vy = v1.p1.y - v2.p1.y;
_local6 = (_local4.vx * v2.dx) + (_local4.vy * v2.dy);
if (_local6 > 0) {
v1.p = 1;
var _local5 = _local4;
} else {
v1.p = 2;
var _local5 = projectVector(_local2, v2.lx, v2.ly);
}
}
return(_local5);
}
function bounce(v1, v2) {
var _local5 = projectVector(v1, v2.dx, v2.dy);
var _local1 = projectVector(v1, v2.lx, v2.ly);
var _local4 = {};
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.vx = v2.lx * _local1.len;
_local1.vy = v2.ly * _local1.len;
_local4.vx = ((v1.f * v2.f) * _local5.vx) + ((v1.b * v2.b) * _local1.vx);
_local4.vy = ((v1.f * v2.f) * _local5.vy) + ((v1.b * v2.b) * _local1.vy);
return(_local4);
}
function projectVector(v1, dx, dy) {
var _local2 = (v1.vx * dx) + (v1.vy * dy);
var _local1 = {};
_local1.vx = _local2 * dx;
_local1.vy = _local2 * dy;
return(_local1);
}
function IntersectionPoint(v1, v2) {
v3 = {vx:v2.p0.x - v1.p0.x, vy:v2.p0.y - v1.p0.y};
var _local2 = perP(v3, v2) / perP(v1, v2);
ip = {};
ip.x = v1.p0.x + (v1.vx * _local2);
ip.y = v1.p0.y + (v1.vy * _local2);
return(ip);
}
function perP(va, vb) {
pp = (va.vx * vb.vy) - (va.vy * vb.vx);
return(pp);
}
function ball2ball(b1, b2) {
var _local1 = {};
_local1.vx = b1.p1.x - b2.p0.x;
_local1.vy = b1.p1.y - b2.p0.y;
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.dx = _local1.vx / _local1.len;
_local1.dy = _local1.vy / _local1.len;
return(_local1);
}
function ball2ball_ap(b1, b2) {
var _local1 = {};
_local1.vx = b1.p1.x - b2.x;
_local1.vy = b1.p1.y - b2.y;
_local1.len = Math.sqrt((_local1.vx * _local1.vx) + (_local1.vy * _local1.vy));
_local1.dx = _local1.vx / _local1.len;
_local1.dy = _local1.vy / _local1.len;
return(_local1);
}
function onLine(v1, ob) {
var _local1 = {};
_local1.p0 = v1.p0;
_local1.p1 = ob.p1;
CalcVector(_local1, true);
rc = _local1.vy / _local1.vx;
rc2 = v1.vy / v1.vx;
if (rc > rc2) {
return(false);
}
return(true);
}
function checkDead(ob) {
var _local4 = 1;
while (_local4 <= level.nrCircles) {
var _local6 = game["c" + _local4];
var _local3 = ball2ball(ob, _local6);
var _local5 = (ob.r + _local6.r) - _local3.len;
if (_local5 >= 0) {
return(true);
}
_local4++;
}
_local4 = 1;
while (_local4 <= level.nrArcs) {
var _local6 = game["a" + _local4];
ang1rad = (_local6.ang1 * Math.PI) / 180;
ang2rad = (_local6.ang2 * Math.PI) / 180;
var _local2 = {};
_local2.p0 = {x:_local6.p0.x + (_local6.r * Math.cos(ang1rad)), y:_local6.p0.y + (_local6.r * Math.sin(ang1rad))};
_local2.p1 = {x:_local6.p0.x + (_local6.r * Math.cos(ang2rad)), y:_local6.p0.y + (_local6.r * Math.sin(ang2rad))};
CalcVector(_local2, true);
v2 = {p0:_local6.p0, p1:ob.p1};
CalcVector(v2, true);
p3 = {x:_local6.p0.x + (v2.dx * _local6.r), y:_local6.p0.y + (v2.dy * _local6.r)};
v3 = {p0:_local2.p0, p1:p3};
CalcVector(v3, true);
dp = (v3.vx * _local2.dx) + (v3.vy * _local2.dy);
var _local3 = ball2ball(ob, _local6);
var _local5 = (_local3.len - _local6.r) + ob.r;
if (dp < 0) {
if ((_local5 >= 0) && (_local5 <= game.maxV)) {
return(true);
}
} else {
dis1 = Math.sqrt(((ob.p1.x - _local6.p1.x) * (ob.p1.x - _local6.p1.x)) + ((ob.p1.y - _local6.p1.y) * (ob.p1.y - _local6.p1.y)));
dis2 = Math.sqrt(((ob.p1.x - _local6.p2.x) * (ob.p1.x - _local6.p2.x)) + ((ob.p1.y - _local6.p2.y) * (ob.p1.y - _local6.p2.y)));
if (dis1 < dis2) {
_local6 = {p0:_local6.p1, r:0};
} else {
_local6 = {p0:_local6.p2, r:0};
}
_local3 = ball2ball(ob, _local6);
_local5 = (ob.r + _local6.r) - _local3.len;
if (_local5 >= 0) {
return(true);
}
}
_local4++;
}
_local4 = 1;
while (_local4 <= level.nrWalls) {
var _local6 = game["v" + _local4];
var _local3 = findIntersection(ob, _local6);
_local3 = CalcVector(_local3, false);
var _local5 = ob.r - _local3.len;
if (_local5 >= 0) {
return(true);
}
_local4++;
}
return(false);
}
function step() {
hbar.hmask._xscale = 3.33333333333333 * hh;
speedbar.hmask._xscale = Math.round(Math.sqrt(((ob2.vx * ob2.vx) + ob2.vy) + ob2.vy) * 2.5);
ob = game.ob2;
ob2 = game.ob;
pv = {x:ob2.p1.x, y:ob2.p1.y};
view_left = pv.x - 300;
view_right = pv.x + 300;
view_up = pv.y - 225;
view_down = pv.y + 225;
mc_racer.r.gotoAndStop(2);
mm = 0.2;
v1 = {p0:ob2.p1, p1:ob.p1};
CalcVector(v1, true);
pc1 = pc12;
gl = 1;
gr = 1;
if (ob.p0.x == ob2.p0.x) {
ob2.p0.x = ob2.p0.x + 0.01;
}
if (!rd) {
rd = 0;
}
if ((keyprev == 1) && (key == 0)) {
keySpaceReleased = true;
} else {
keySpaceReleased = false;
}
keyprev = key;
if ((keyprev2 == 0) && (key2 == 1)) {
playSndGas();
}
keyprev2 = key2;
if (key2 == 0) {
}
if (Key.isDown(32)) {
key = 1;
} else {
key = 0;
}
if (Key.isDown(39)) {
rd++;
gl = 0.6;
gr = 1.4;
if (dir == 1) {
pc1 = pc13;
mc_racer.r.gotoAndStop(3);
} else {
pc1 = pc11;
mc_racer.r.gotoAndStop(1);
}
mm = game.ac / 2;
f = 1.2;
ob.vx = ob.vx - ((v1.dy * f) / 2);
ob.vy = ob.vy + ((v1.dx * f) / 2);
ob2.vx = ob2.vx + ((v1.dy * f) / 2);
ob2.vy = ob2.vy - ((v1.dx * f) / 2);
CalcVector(ob2, false);
}
if (Key.isDown(37)) {
rd--;
gr = 0.6;
gl = 1.4;
mm = game.ac / 2;
if (dir == 1) {
pc1 = pc11;
mc_racer.r.gotoAndStop(1);
} else {
pc1 = pc13;
mc_racer.r.gotoAndStop(3);
}
f = 1.2;
ob2.vx = ob2.vx - ((v1.dy * f) / 2);
ob2.vy = ob2.vy + ((v1.dx * f) / 2);
ob.vx = ob.vx + ((v1.dy * f) / 2);
ob.vy = ob.vy - ((v1.dx * f) / 2);
CalcVector(ob2, false);
}
if (Key.isDown(38) && (ob2.onGround || (ob.onGround))) {
if (ob2.onGround) {
an = Math.atan(obwallvy2 / obwallvx2);
n = Math.cos(an);
ob2.vx = ob2.vx + (((((game.gas / ((3 * ice2) + 1)) * Math.cos(an)) * n) * gl) * dir);
ob2.vy = ob2.vy + (((((game.gas / ((3 * ice2) + 1)) * Math.sin(an)) * n) * gl) * dir);
mm = mm * 1.5;
speed = Math.sqrt((ob2.vx * ob2.vx) + (ob2.vy * ob2.vy));
ob.vx = ob.vx - ((((mm / 14) * (17 - speed)) * Math.sin(an)) / ((1.5 * ice2) + 1));
ob.vy = ob.vy - ((((mm / 14) * (17 - speed)) * Math.cos(an)) / ((1.5 * ice2) + 1));
if (ice2) {
acice2 = 3;
} else {
acice2 = 1;
}
}
if (ob.onGround) {
an = Math.atan(obwallvy / obwallvx);
n = Math.cos(an);
ob.vx = ob.vx + (((((game.gas / ((3 * ice1) + 1)) * Math.cos(an)) * n) * gr) * dir);
ob.vy = ob.vy + (((((game.gas / ((3 * ice1) + 1)) * Math.sin(an)) * n) * gr) * dir);
if (ice1) {
acice1 = 3;
} else {
acice1 = 1;
}
}
} else if (Key.isDown(40) && (ob.onGround || (ob2.onGround))) {
if (ob2.onGround) {
an = Math.atan(obwallvy2 / obwallvx2);
n = Math.cos(an);
ob2.vx = ob2.vx - (((((game.gas / ((3 * ice2) + 1)) * Math.cos(an)) * n) * gl) * dir);
ob2.vy = ob2.vy - (((((game.gas / ((3 * ice2) + 1)) * Math.sin(an)) * n) * gl) * dir);
speed = Math.sqrt((ob2.vx * ob2.vx) + (ob2.vy * ob2.vy));
ob2.vx = ob2.vx - ((((mm / 7) * (17 - speed)) * Math.sin(an)) / ((3 * ice2) + 1));
ob2.vy = ob2.vy - ((((mm / 7) * (17 - speed)) * Math.cos(an)) / ((3 * ice2) + 1));
if (ice2) {
acice2 = 3;
} else {
acice2 = 1;
}
}
if (ob.onGround) {
an = Math.atan(obwallvy / obwallvx);
n = Math.cos(an);
ob.vx = ob.vx - (((((game.gas / ((3 * ice1) + 1)) * Math.cos(an)) * n) * gr) * dir);
ob.vy = ob.vy - (((((game.gas / ((3 * ice1) + 1)) * Math.sin(an)) * n) * gr) * dir);
if (ice1) {
acice1 = 3;
} else {
acice1 = 1;
}
}
}
if (Key.isDown(38) || (Key.isDown(40))) {
key2 = 1;
} else {
key2 = 0;
}
if (key2 == 1) {
playSndBike2();
trace("play2");
} else {
playSndBike();
trace("play1");
}
ice1 = 0;
ice2 = 0;
ob = CalcVector(ob, false);
ob2 = CalcVector(ob2, false);
obwallpen2 = 0;
ob = game.ob;
ob.vx = ob.vx * ob.airf;
ob.vy = ((ob.vy + game.gravity) + add_g_right) * ob.airf;
ob = CalcVector(ob, false);
ob.onGround = false;
var _local2 = 1;
while (_local2 <= level.nrCircles) {
var _local3 = game["c" + _local2];
if ((_local3.t != 99) && ((((((_local3.p0.x + _local3.r) - 10) < view_left) || (((_local3.p0.x - _local3.r) + 10) > view_right)) || (((_local3.p0.y + _local3.r) - 10) < view_up)) || (((_local3.p0.y - _local3.r) + 10) > view_down))) {
_local3.clip._visible = false;
} else {
_local3.clip._visible = true;
}
if (_local3.clip._visible) {
var _local4 = ball2ball(ob, _local3);
var _local5 = (ob.r + _local3.r) - _local4.len;
if (_local5 >= 0) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
ob.p1.x = ob.p1.x + (_local4.dx * _local5);
ob.p1.y = ob.p1.y + (_local4.dy * _local5);
CalcVector(ob, true);
ob.onGround = true;
if (_local5 >= obwallpen2) {
ob.wall = game["c" + _local2];
obwallpen2 = _local5;
var _local6 = {p0:ob.p0, p1:game["c" + _local2].p0};
CalcVector(_local6, true);
obwallvx2 = _local6.vy;
obwallvy2 = -_local6.vx;
wall2 = "circle";
}
}
}
_local2++;
}
ob = CalcVector(ob, false);
_local2 = 1;
while (_local2 <= level.nrArcs) {
var _local3 = game["a" + _local2];
if ((((((_local3.p0.x + _local3.r) - 10) < view_left) || (((_local3.p0.x - _local3.r) + 10) > view_right)) || (((_local3.p0.y + _local3.r) - 10) < view_up)) || (((_local3.p0.y - _local3.r) + 10) > view_down)) {
_local3.clip._visible = false;
} else {
_local3.clip._visible = true;
}
if (_local3.clip._visible) {
ang1rad = (_local3.ang1 * Math.PI) / 180;
ang2rad = (_local3.ang2 * Math.PI) / 180;
var v1 = {};
v1.p0 = {x:_local3.p0.x + (_local3.r * Math.cos(ang1rad)), y:_local3.p0.y + (_local3.r * Math.sin(ang1rad))};
v1.p1 = {x:_local3.p0.x + (_local3.r * Math.cos(ang2rad)), y:_local3.p0.y + (_local3.r * Math.sin(ang2rad))};
CalcVector(v1, true);
v2 = {p0:_local3.p0, p1:ob.p1};
CalcVector(v2, true);
p3 = {x:_local3.p0.x + (v2.dx * _local3.r), y:_local3.p0.y + (v2.dy * _local3.r)};
v3 = {p0:v1.p0, p1:p3};
CalcVector(v3, true);
dp = (v3.vx * v1.dx) + (v3.vy * v1.dy);
var _local4 = ball2ball(ob, _local3);
var _local5 = (_local4.len - _local3.r) + ob.r;
if (dp < 0) {
if ((_local5 >= 0) && (_local5 <= game.maxV)) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
ob.p1.x = ob.p1.x - (_local4.dx * _local5);
ob.p1.y = ob.p1.y - (_local4.dy * _local5);
CalcVector(ob, true);
ob.onGround = true;
if (_local5 >= obwallpen2) {
ob.wall = game["a" + _local2];
wall2 = "arc";
obwallpen2 = _local5;
var _local6 = {p0:ob.p0, p1:_local3.p0};
CalcVector(_local6, true);
obwallvx2 = _local6.vy;
obwallvy2 = -_local6.vx;
}
}
} else {
dis1 = Math.sqrt(((ob.p1.x - _local3.p1.x) * (ob.p1.x - _local3.p1.x)) + ((ob.p1.y - _local3.p1.y) * (ob.p1.y - _local3.p1.y)));
dis2 = Math.sqrt(((ob.p1.x - _local3.p2.x) * (ob.p1.x - _local3.p2.x)) + ((ob.p1.y - _local3.p2.y) * (ob.p1.y - _local3.p2.y)));
if (dis1 < dis2) {
_local3 = {p0:_local3.p1, r:0};
} else {
_local3 = {p0:_local3.p2, r:0};
}
_local4 = ball2ball(ob, _local3);
_local5 = (ob.r + _local3.r) - _local4.len;
if (_local5 >= 0) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
ob.p1.x = ob.p1.x + (_local4.dx * _local5);
ob.p1.y = ob.p1.y + (_local4.dy * _local5);
CalcVector(ob, true);
ob.onGround = true;
if (_local5 >= obwallpen2) {
ob.wall = game["a" + _local2];
wall2 = "arc";
obwallpen2 = _local5;
var _local6 = {p0:ob.p0, p1:_local3.p0};
CalcVector(_local6, true);
obwallvx2 = _local6.vy;
obwallvy2 = -_local6.vx;
}
}
}
}
_local2++;
}
ob = CalcVector(ob, false);
_local2 = 1;
while (_local2 <= level.nrWalls) {
var _local3 = game["v" + _local2];
if ((_local3.t == 99) || (((((_local3.p0.x > view_left) && (_local3.p0.x < view_right)) && (_local3.p0.y > view_up)) && (_local3.p0.y < view_down)) || ((((_local3.p1.x > view_left) && (_local3.p1.x < view_right)) && (_local3.p1.y > view_up)) && (_local3.p1.y < view_down)))) {
_local3.clip._visible = true;
} else {
_local3.clip._visible = false;
game.v1.clip._visible = true;
}
if (_local3.clip._visible || (_local3.t == 4)) {
var _local4 = findIntersection(ob, _local3);
_local4 = CalcVector(_local4, false);
var _local5 = ob.r - _local4.len;
if ((_local3.s && (_local5 >= -2)) && (_local3.d != 1)) {
if (_local3.p1.x > _local3.p0.x) {
ob.p1.x = ob.p1.x + 1;
} else {
ob.p1.x = ob.p1.x - 1;
}
}
if (_local5 >= 0) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
if ((_local3.t == 6) || (_local3.t == 0)) {
ice2 = 1;
}
if (_local3.d == 1) {
hh--;
}
ob.onGround = true;
if (_local3.d != 1) {
ob.p1.x = ob.p1.x + (_local4.dx * _local5);
ob.p1.y = ob.p1.y + (_local4.dy * _local5);
CalcVector(ob, true);
var _local10 = {dx:_local4.lx, dy:_local4.ly, lx:_local4.dx, ly:_local4.dy, b:1, f:1};
var _local8 = bounce(ob, _local10);
ob.vx = _local8.vx;
ob.vy = _local8.vy;
}
if ((_local5 >= obwallpen2) && (_local3.d != 1)) {
ob.wall = game["v" + _local2];
wall2 = "line";
obwallpen2 = _local5;
if (ob.p == 2) {
obwallvx2 = ob.wall.vx;
obwallvy2 = ob.wall.vy;
} else if (ob.p == 0) {
var _local7 = {p0:ob.wall.p0, p1:ob.p1};
CalcVector(_local7, true);
obwallvx2 = _local7.vy;
obwallvy2 = -_local7.vx;
} else if (ob.p == 1) {
var _local7 = {p0:ob.wall.p1, p1:ob.p1};
CalcVector(_local7, true);
obwallvx2 = _local7.vy;
obwallvy2 = -_local7.vx;
}
}
}
}
_local2++;
}
ob2 = ob;
ob = game.ob2;
obwallpen = 0;
ob.vx = ob.vx * ob.airf;
ob.vy = ((ob.vy + game.gravity) + add_g_left) * ob.airf;
ob = CalcVector(ob, false);
ob.onGround = false;
_local2 = 1;
while (_local2 <= level.nrCircles) {
var _local3 = game["c" + _local2];
if (_local3.clip._visible) {
var _local4 = ball2ball(ob, _local3);
var _local5 = (ob.r + _local3.r) - _local4.len;
if (_local5 >= 0) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
ob.p1.x = ob.p1.x + (_local4.dx * _local5);
ob.p1.y = ob.p1.y + (_local4.dy * _local5);
CalcVector(ob, true);
ob.onGround = true;
if (_local5 >= obwallpen) {
ob.wall = game["c" + _local2];
wall = "circle";
obwallpen = _local5;
var _local6 = {p0:ob.p0, p1:game["c" + _local2].p0};
CalcVector(_local6, true);
obwallvx = _local6.vy;
obwallvy = -_local6.vx;
}
}
}
_local2++;
}
ob = CalcVector(ob, false);
_local2 = 1;
while (_local2 <= level.nrArcs) {
var _local3 = game["a" + _local2];
if (_local3.clip._visible) {
var _local9 = {p0:_local3.p1, p1:_local3.p2};
var _local4 = findIntersection(ob, _local9);
ang1rad = (_local3.ang1 * Math.PI) / 180;
ang2rad = (_local3.ang2 * Math.PI) / 180;
var v1 = {};
v1.p0 = {x:_local3.p0.x + (_local3.r * Math.cos(ang1rad)), y:_local3.p0.y + (_local3.r * Math.sin(ang1rad))};
v1.p1 = {x:_local3.p0.x + (_local3.r * Math.cos(ang2rad)), y:_local3.p0.y + (_local3.r * Math.sin(ang2rad))};
CalcVector(v1, true);
v2 = {p0:_local3.p0, p1:ob.p1};
CalcVector(v2, true);
p3 = {x:_local3.p0.x + (v2.dx * _local3.r), y:_local3.p0.y + (v2.dy * _local3.r)};
v3 = {p0:v1.p0, p1:p3};
CalcVector(v3, true);
dp = (v3.vx * v1.dx) + (v3.vy * v1.dy);
_local4 = ball2ball(ob, _local3);
var _local5 = (_local4.len - _local3.r) + ob.r;
if (dp < 0) {
if ((_local5 >= 0) && (_local5 <= game.maxV)) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
ob.p1.x = ob.p1.x - (_local4.dx * _local5);
ob.p1.y = ob.p1.y - (_local4.dy * _local5);
CalcVector(ob, true);
ob.onGround = true;
if (_local5 >= obwallpen) {
ob.wall = game["a" + _local2];
wall = "arc";
obwallpen = _local5;
if (ob.p == 2) {
var _local6 = {p0:ob.p0, p1:_local3.p0};
CalcVector(_local6, true);
obwallvx = _local6.vy;
obwallvy = -_local6.vx;
} else if (ob.p == 0) {
var _local7 = {p0:ob.w2.p0, p1:ob.p1};
CalcVector(_local7, true);
obwallvx = _local7.vy;
obwallvy = -_local7.vx;
} else if (ob.p == 1) {
var _local7 = {p0:ob.w2.p1, p1:ob.p1};
CalcVector(_local7, true);
obwallvx = _local7.vy;
obwallvy = -_local7.vx;
}
}
}
} else {
dis1 = Math.sqrt(((ob.p1.x - _local3.p1.x) * (ob.p1.x - _local3.p1.x)) + ((ob.p1.y - _local3.p1.y) * (ob.p1.y - _local3.p1.y)));
dis2 = Math.sqrt(((ob.p1.x - _local3.p2.x) * (ob.p1.x - _local3.p2.x)) + ((ob.p1.y - _local3.p2.y) * (ob.p1.y - _local3.p2.y)));
if (dis1 < dis2) {
_local3 = {p0:_local3.p1, r:0};
} else {
_local3 = {p0:_local3.p2, r:0};
}
_local4 = ball2ball(ob, _local3);
_local5 = (ob.r + _local3.r) - _local4.len;
if (_local5 >= 0) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
ob.p1.x = ob.p1.x + (_local4.dx * _local5);
ob.p1.y = ob.p1.y + (_local4.dy * _local5);
CalcVector(ob, true);
ob.onGround = true;
if (_local5 >= obwallpen) {
ob.wall = game["a" + _local2];
wall = "arc";
obwallpen = _local5;
var _local6 = {p0:ob.p0, p1:_local3.p0};
CalcVector(_local6, true);
obwallvx = _local6.vy;
obwallvy = -_local6.vx;
}
}
}
}
_local2++;
}
ob = CalcVector(ob, false);
_local2 = 1;
while (_local2 <= level.nrWalls) {
var _local3 = game["v" + _local2];
if (_local3.clip._visible || (_local3.t == 4)) {
var _local4 = findIntersection(ob, _local3);
_local4 = CalcVector(_local4, false);
var _local5 = ob.r - _local4.len;
if ((_local3.s && (_local5 >= -2)) && (_local3.d != 1)) {
if (_local3.p1.x > _local3.p0.x) {
ob.p1.x = ob.p1.x + 1;
} else {
ob.p1.x = ob.p1.x - 1;
}
}
if (_local5 >= 0) {
if (_local5 > 15) {
hh = hh - (10 + (_local5 - 15));
}
if (_local3.t == 6) {
ice1 = 1;
}
if (_local3.d == 1) {
hh--;
}
ob.onGround = true;
if (_local3.d != 1) {
ob.p1.x = ob.p1.x + (_local4.dx * _local5);
ob.p1.y = ob.p1.y + (_local4.dy * _local5);
CalcVector(ob, true);
var _local10 = {dx:_local4.lx, dy:_local4.ly, lx:_local4.dx, ly:_local4.dy, b:1, f:1};
var _local8 = bounce(ob, _local10);
ob.vx = _local8.vx;
ob.vy = _local8.vy;
}
if ((_local5 >= obwallpen) && (_local3.d != 1)) {
ob.wall = game["v" + _local2];
wall = "line";
obwallpen = _local5;
if (ob.p == 2) {
obwallvx = ob.wall.vx;
obwallvy = ob.wall.vy;
} else if (ob.p == 0) {
var _local7 = {p0:ob.wall.p0, p1:ob.p1};
CalcVector(_local7, true);
obwallvx = _local7.vy;
obwallvy = -_local7.vx;
} else if (ob.p == 1) {
var _local7 = {p0:ob.wall.p1, p1:ob.p1};
CalcVector(_local7, true);
obwallvx = _local7.vy;
obwallvy = -_local7.vx;
}
}
}
}
_local2++;
}
var _local18 = {p0:ob2.p1, p1:ob.p1};
CalcVector(_local18, true);
l_dif = ob2.len - ob.len;
l_an = Math.atan(_local18.vy / _local18.vx);
if (l_dif > 0) {
ob.vx = ob.vx + (((1 - game.ob.airf) * l_dif) * Math.sin(l_an));
ob.vy = ob.vy - (((1 - game.ob.airf) * l_dif) * Math.cos(l_an));
}
accc1 = false;
accc2 = false;
if ((ob2.onGround == true) && (ob.onGround == true)) {
wheelie = 0;
rd = 0;
accc2 = true;
accc1 = true;
var _local17 = {p0:ob2.p1, p1:ob.p1};
CalcVector(_local17, true);
if ((obwallvx < 0) && (wall == "line")) {
obwallvy = obwallvy * -1;
}
if ((obwallvx2 < 0) && (wall2 == "line")) {
obwallvy2 = obwallvy2 * -1;
}
an = Math.atan(obwallvy2 / obwallvx2);
an2 = Math.atan(obwallvy / obwallvx);
add_len = game.motor_len - _local17.len;
anb = Math.atan(_local17.vy / _local17.vx);
n = Math.abs(Math.cos(an - anb));
n2 = Math.abs(Math.cos(an2 - anb));
nn = n + n2;
vx = (((add_len / nn) * n) / 2) * Math.cos(an);
vy = (((add_len / nn) * n) / 2) * Math.sin(an);
vx2 = (((add_len / nn) * n2) / 2) * Math.cos(an2);
vy2 = (((add_len / nn) * n) / 2) * Math.sin(an2);
if (wall2 == "circle") {
if (dir == 1) {
if ((ob.onGround && (ob2.p1.x < ob2.wall.p0.x)) && (ob2.p1.y > ob2.wall.p0.y)) {
vx = vx * -1;
vy = vy * -1;
}
} else if ((ob.onGround && (ob2.p1.x > ob2.wall.p0.x)) && (ob2.p1.y > ob2.wall.p0.y)) {
vx = vx * -1;
vy = vy * -1;
}
} else if (wall == "circle") {
if (dir == 1) {
if ((ob2.onGround && (ob.p1.x < ob.wall.p0.x)) && (ob.p1.y > ob.wall.p0.y)) {
vx2 = vx2 * -1;
vy2 = vy2 * -1;
}
} else if ((ob2.onGround && (ob.p1.x > ob.wall.p0.x)) && (ob.p1.y > ob.wall.p0.y)) {
vx2 = vx2 * -1;
vy2 = vy2 * -1;
}
}
if (ob2.p1.x < ob.p1.x) {
ob2.vx = ob2.vx - vx;
ob2.vy = ob2.vy - vy;
ob.vx = ob.vx + vx2;
ob.vy = ob.vy + vy2;
} else {
ob2.vx = ob2.vx + vx;
ob2.vy = ob2.vy + vy;
ob.vx = ob.vx - vx2;
ob.vy = ob.vy - vy2;
}
CalcVector(ob2, false);
CalcVector(ob, false);
} else if ((ob2.onGround == false) && (ob.onGround == true)) {
if (Math.abs(ob.p1.y - ob2.p1.y) > 20) {
wheelie = wheelie + 2;
}
rd = 0;
accc1 = true;
if (acc2 > 0) {
acc2 = acc2 - 0.2;
} else if (acc2 < 0) {
acc2 = acc2 + 0.2;
}
var _local17 = {p0:{}, p1:{}};
_local17.p0.x = ob2.p1.x;
_local17.p0.y = ob2.p1.y;
_local17.p1.x = ob.p1.x;
_local17.p1.y = ob.p1.y;
CalcVector(_local17, true);
if ((obwallvx < 0) && (wall == "line")) {
obwallvy = obwallvy * -1;
}
if ((obwallvx2 < 0) && (wall2 == "line")) {
obwallvy2 = obwallvy2 * -1;
}
an = Math.atan(_local17.vy / _local17.vx);
add_len = game.motor_len - _local17.len;
vx = add_len * Math.cos(an);
vy = add_len * Math.sin(an);
if (ob2.p1.x < ob.p1.x) {
ob2.vx = ob2.vx - (vx / 2);
ob2.vy = ob2.vy - (vy / 2);
} else {
ob2.vx = ob2.vx + (vx / 2);
ob2.vy = ob2.vy + (vy / 2);
}
CalcVector(ob2, false);
} else if ((ob2.onGround == true) && (ob.onGround == false)) {
if (Math.abs(ob.p1.y - ob2.p1.y) > 20) {
wheelie++;
}
rd = 0;
accc2 = true;
if (acc1 > 0) {
acc1 = acc1 - 0.2;
} else if (acc1 < 0) {
acc1 = acc1 + 0.2;
}
var _local17 = {p0:{}, p1:{}};
_local17.p0.x = ob2.p1.x;
_local17.p0.y = ob2.p1.y;
_local17.p1.x = ob.p1.x;
_local17.p1.y = ob.p1.y;
CalcVector(_local17, true);
if ((obwallvx < 0) && (wall == "line")) {
obwallvy = obwallvy * -1;
}
if ((obwallvx2 < 0) && (wall2 == "line")) {
obwallvy2 = obwallvy2 * -1;
}
an = Math.atan(_local17.vy / _local17.vx);
add_len = game.motor_len - _local17.len;
vx = add_len * Math.cos(an);
vy = add_len * Math.sin(an);
if (ob2.p1.x < ob.p1.x) {
ob.vx = ob.vx + (vx / 2);
ob.vy = ob.vy + (vy / 2);
} else {
ob.vx = ob.vx - (vx / 2);
ob.vy = ob.vy - (vy / 2);
}
CalcVector(ob, false);
} else {
wheelie = 0;
if (acc2 > 0) {
acc2 = acc2 - 0.2;
} else if (acc2 < 0) {
acc2 = acc2 + 0.2;
}
if (acc1 > 0) {
acc1 = acc1 - 0.2;
} else if (acc1 < 0) {
acc1 = acc1 + 0.2;
}
var _local17 = {p0:{}, p1:{}};
_local17.p0.x = ob2.p1.x;
_local17.p0.y = ob2.p1.y;
_local17.p1.x = ob.p1.x;
_local17.p1.y = ob.p1.y;
CalcVector(_local17, true);
if ((obwallvx < 0) && (wall == "line")) {
obwallvy = obwallvy * -1;
}
if ((obwallvx2 < 0) && (wall2 == "line")) {
obwallvy2 = obwallvy2 * -1;
}
an = Math.atan(_local17.vy / _local17.vx);
add_len = game.motor_len - _local17.len;
vx = add_len * Math.cos(an);
vy = add_len * Math.sin(an);
if (ob2.p1.x < ob.p1.x) {
ob.vx = ob.vx + (vx / 2);
ob.vy = ob.vy + (vy / 2);
ob2.vx = ob2.vx - (vx / 2);
ob2.vy = ob2.vy - (vy / 2);
} else {
ob.vx = ob.vx - (vx / 2);
ob.vy = ob.vy - (vy / 2);
ob2.vx = ob2.vx + (vx / 2);
ob2.vy = ob2.vy + (vy / 2);
}
CalcVector(ob, false);
CalcVector(ob2, false);
}
if (accc2) {
acc2 = (Math.sqrt((ob2.vx * ob2.vx) + (ob2.vy * ob2.vy)) * 3) * acice2;
if (ob2.vx < 0) {
acc2 = acc2 * -1;
}
}
if (accc1) {
acc1 = (Math.sqrt((ob.vx * ob.vx) + (ob.vy * ob.vy)) * 3) * acice1;
if (ob2.vx < 0) {
acc1 = acc1 * -1;
}
}
mc_racer.motorbody.wheel2.wheel._rotation = mc_racer.motorbody.wheel2.wheel._rotation + (acc2 * dir);
mc_racer.motorbody.wheel1.wheel._rotation = mc_racer.motorbody.wheel1.wheel._rotation + (acc1 * dir);
if (hh <= 0) {
gotoAndStop (5);
}
var _local17 = {p0:{}, p1:{}};
_local17.p0.x = ob2.p1.x;
_local17.p0.y = ob2.p1.y;
_local17.p1.x = ob.p1.x;
_local17.p1.y = ob.p1.y;
CalcVector(_local17, true);
an = Math.atan(_local17.vy / _local17.vx);
p1len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
p1an = an - (Math.atan(pc1.y / pc1.x) * dir);
if (deadAdd180()) {
p1an = p1an + Math.PI;
}
p1x = ob2.p1.x + (p1len * Math.cos(p1an));
p1y = ob2.p1.y + (p1len * Math.sin(p1an));
obp1 = {r:5, p0:{x:p1x, y:p1y}, p1:{x:p1x, y:p1y}};
p2len = Math.sqrt((pc2.x * pc2.x) + (pc2.y * pc2.y));
p2an = an - (Math.atan(pc2.y / pc2.x) * dir);
if (deadAdd180()) {
p2an = p2an + Math.PI;
}
p2x = ob2.p1.x + (p2len * Math.cos(p2an));
p2y = ob2.p1.y + (p2len * Math.sin(p2an));
obp2 = {r:5, p0:{x:p2x, y:p2y}, p1:{x:p2x, y:p2y}};
xx = obp2.p0.x;
yy = obp2.p0.y;
xx2 = obp1.p0.x;
yy2 = obp1.p0.y;
if (((!starsR) && (starsR != 0)) || (starsR < 0)) {
starsR = level.nrStars;
}
if (starsR == 0) {
if (Math.sqrt(((xx - game.cp1.p0.x) * (xx - game.cp1.p0.x)) + ((yy - game.cp1.p0.y) * (yy - game.cp1.p0.y))) < 70) {
frame++;
starsR = -1;
dir = 1;
if (bonusp > 40) {
bonusp = 40 + ((bonusp - 40) / 5);
}
if (bonusp > 55) {
bonusp = 55;
}
gotoAndStop(frame);
}
} else {
_local2 = 1;
while (_local2 <= level.nrStars) {
obj = game["star" + _local2];
if ((Math.sqrt(((xx - obj.p0.x) * (xx - obj.p0.x)) + ((yy - obj.p0.y) * (yy - obj.p0.y))) < 70) || (Math.sqrt(((xx2 - obj.p0.x) * (xx2 - obj.p0.x)) + ((yy2 - obj.p0.y) * (yy2 - obj.p0.y))) < 70)) {
starsR--;
obj.clip.gotoAndStop(61);
delete game["star" + _local2];
}
_local2++;
}
}
if (obp2.p0.y > 3000) {
gotoAndStop (6);
}
if (checkDead(obp1) || (checkDead(obp2))) {
bonusp = 0;
wheelie = 0;
starsR = level.nrStars;
gotoAndStop (4);
}
gameclip._x = 275 - ((ob2.p1.x + ob.p1.x) / 2);
gameclip._y = 255 - ((ob2.p1.y + ob.p1.y) / 2);
if (ob.p0.x == ob2.p0.x) {
ob2.p0.x = ob2.p0.x + 0.01;
}
updateBike();
ob.p0.x = ob.p1.x;
ob.p0.y = ob.p1.y;
ob2.p0.x = ob2.p1.x;
ob2.p0.y = ob2.p1.y;
if (wheelie > 20) {
trickS.gotoAndStop(4);
bonusp = bonusp + 1;
wheelie = 0;
}
if (pp) {
ppp = pp;
r = _root.mc_racer._rotation;
if ((r > 0) && (r <= 90)) {
pp = 4;
} else if ((r > 90) && (r <= 180)) {
pp = 3;
} else if ((r > -90) && (r <= 0)) {
pp = 1;
} else {
pp = 2;
}
if (((ppp - 1) == pp) || ((ppp + 3) == pp)) {
lc--;
} else if (((ppp + 1) == pp) || ((ppp - 3) == pp)) {
lc++;
}
if ((lc == 3) && (r < 10)) {
lc = 0;
bonusp = bonusp + 7;
trickS.gotoAndStop(2);
}
if ((lc == -4) && (r > -10)) {
lc = 0;
bonusp = bonusp + 6;
trickS.gotoAndStop(3);
}
} else {
pp = 1;
lc = 0;
}
if (_root.mc_racer._visible == false) {
_root.mc_racer._visible = true;
}
if (keySpaceReleased == true) {
dir = dir * -1;
_root.mc_racer._visible = false;
pp = game.ob;
game.ob = game.ob2;
game.ob2 = pp;
_root.mc_racer._yscale = _root.mc_racer._yscale * -1;
if (dir == -1) {
_root.mc_racer._x = _root.mc_racer._x + _root.game.motor_len;
} else if (dir == 1) {
_root.mc_racer._x = _root.mc_racer._x - _root.game.motor_len;
}
}
_root.mc_racer._x = 275 - ((ob.p1.x - ob2.p1.x) / 2);
_root.mc_racer._y = 252 + ((ob2.p1.y - ob.p1.y) / 2);
}
stringEnd = "Presented by:";
fader._alpha = 0;
ii = 0;
onEnterFrame = function () {
ii++;
if (ii == 1) {
sndMenu.start(0, 999);
}
if (ii <= 100) {
sndMenu.setVolume(ii);
}
if (ii >= 40) {
typo.text = substring(stringEnd, 1, ii - 40);
}
fader._alpha = (ii * 2) - 150;
if (fader._alpha > 210) {
if (tt == 1) {
gotoAndStop (53);
} else {
gotoAndStop (3);
}
}
};
so = SharedObject.getLocal("userData");
if (so.data.levelNrTotal == null) {
so.data.levelNrTotal = 1;
}
if (so.data.nn == null) {
tt = 1;
} else {
tt = 0;
nn = so.data.nn;
}
levelNrTotal = so.data.levelNrTotal;
frame = 5 + (levelNrTotal * 2);
sp = 1;
sndMenu = new Sound();
sndMenu.attachSound("menusound");
sndMenu.setVolume(0);
nextLvl = new Sound();
nextLvl.attachSound("tussentune");
sndChal = new Sound();
sndChal.attachSound("sndchallenge");
sndChal.setVolume(70);
sndBike = new Sound();
sndBike.attachSound("sndbike");
playSndBike = function () {
if (sp == 1) {
sndBike.stop("sndBike2");
sp = 0;
sndBike.start(0, 999);
}
};
sndBike2 = new Sound();
sndBike2.attachSound("sndbike2");
playSndBike2 = function () {
if (sp == 0) {
sndBike2.stop("sndBike");
sp = 1;
sndBike2.start(0, 999);
}
};
sndGas1 = new Sound();
sndGas2 = new Sound();
sndGas3 = new Sound();
sndGas1.setVolume(80);
sndGas2.setVolume(80);
sndGas3.setVolume(80);
sndGas1.attachSound("gas1");
sndGas2.attachSound("gas2");
sndGas3.attachSound("gas3");
playSndGas = function () {
r = Math.round(random(3)) + 1;
_root["sndGas" + r].start(0, 1);
};
Frame 3
showed = 0;
shift = 0;
d = 5000;
ttt = 1;
bonusp = 0;
time = 0;
nextLvl.stop();
sndChal.stop();
sndMenu.stop();
sndMenu.start(0, 999);
viewtop5 = 0;
if (!pick1) {
i = 1;
while (i <= levelNrTotal) {
name = "pick" + i;
_root.attachMovie("picklevel", name, d);
yy = Math.floor(i / 5.3);
_root[name]._x = ((-25 - (35 * yy)) + (35 * i)) - (140 * yy);
_root[name]._y = 60 + (35 * yy);
_root[name].levelNr = i;
d = d + 1;
i++;
}
i = 21;
while (i > levelNrTotal) {
name = "pick" + i;
_root.attachMovie("pickscore", name, d);
yy = Math.floor(i / 5.3);
_root[name]._x = ((-25 - (35 * yy)) + (35 * i)) - (140 * yy);
_root[name]._y = 60 + (35 * yy);
_root[name].levelNr = i;
d = d + 1;
i--;
}
}
_root["pick" + ((frame - 5) / 2)].gotoAndStop(2);
getTop5((frame - 5) / 2);
Frame 4
showText = " You've chrashed! Mind your safety, will you?";
starsR = -2;
gameclip.removeMovieClip();
resetBars();
sndBike.stop();
nextLvl.start(0, 999);
showed = 1;
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 5
showText = " You destroyed your bike! Next time try to keep it in one piece!";
starsR = -2;
gameclip.removeMovieClip();
resetBars();
sndBike.stop();
nextLvl.start(0, 999);
showed = 1;
Frame 6
showText = " That was a long way down! Better don't try that again!";
starsR = -2;
gameclip.removeMovieClip();
resetBars();
sndBike.stop();
nextLvl.start(0, 999);
showed = 1;
Frame 7
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
playSndBike();
sky.gotoAndStop(1);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:312, y:776}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:384, y:776}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:7, nrCps:1, nrWalls:12, nrCircles:4, nrArcs:1};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:640, y:800}, p1:{x:640, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:960, y:744}, p1:{x:1072, y:672}, b:0, f:0.98, d:0, t:7, s:0};
game.v4 = {p0:{x:16, y:576}, p1:{x:0, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v5 = {p0:{x:1312, y:792}, p1:{x:1512, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v6 = {p0:{x:1512, y:800}, p1:{x:1696, y:712}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:1696, y:712}, p1:{x:1736, y:720}, b:0, f:0.98, d:0, t:1, s:0};
game.v8 = {p0:{x:1736, y:720}, p1:{x:1760, y:752}, b:0, f:0.98, d:0, t:1, s:0};
game.v9 = {p0:{x:1760, y:752}, p1:{x:1760, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v10 = {p0:{x:640, y:640}, p1:{x:648, y:640}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:648, y:640}, p1:{x:648, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:1144, y:808}, p1:{x:1216, y:728}, b:0, f:0.98, d:0, t:7, s:0};
game.c1 = {p0:{x:864, y:808}, r:50.6, t:0, b:0, f:0.98};
game.c2 = {p0:{x:936, y:768}, r:32, t:0, b:0, f:0.98};
game.c3 = {p0:{x:1272, y:752}, r:64, t:3, b:0, f:0.98};
game.c4 = {p0:{x:1984, y:792}, r:48, t:0, b:0, f:0.98};
game.a1 = {p0:{x:480, y:640}, ang1:90, ang2:180, r:160, p1:{x:640, y:640}, p2:{x:480, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2296, y:800}};
game.star1 = {p0:{x:640, y:568}};
game.star2 = {p0:{x:640, y:496}};
game.star3 = {p0:{x:1040, y:752}};
game.star4 = {p0:{x:1272, y:656}};
game.star5 = {p0:{x:1712, y:672}};
game.star6 = {p0:{x:1776, y:648}};
game.star7 = {p0:{x:1848, y:640}};
showText = " Lesson #1: Accelerate and break with the up and down arrows. Maintain your balance by pressing the left and right arrows.";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 7
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 7
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 7
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 7
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 7
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 8
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 9
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(1);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:176, y:776}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:240, y:776}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:9, nrCps:1, nrWalls:3, nrCircles:5, nrArcs:6};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:2192, y:800}, p1:{x:2192, y:376}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:472, y:808}, p1:{x:472, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:672, y:760}, r:56, t:0, b:0, f:0.98};
game.c2 = {p0:{x:1104, y:776}, r:56, t:0, b:0, f:0.98};
game.c3 = {p0:{x:1216, y:768}, r:56, t:0, b:0, f:0.98};
game.c4 = {p0:{x:1296, y:704}, r:48, t:0, b:0, f:0.98};
game.c5 = {p0:{x:1360, y:768}, r:40, t:0, b:0, f:0.98};
game.a1 = {p0:{x:400, y:704}, ang1:90, ang2:225, r:96, p1:{x:467.88, y:771.88}, p2:{x:400, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:824, y:672}, ang1:135, ang2:270, r:128, p1:{x:733.49, y:762.51}, p2:{x:824, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:1488, y:720}, ang1:90, ang2:225, r:80, p1:{x:1544.57, y:776.57}, p2:{x:1488, y:800}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:1600, y:720}, ang1:135, ang2:270, r:80, p1:{x:1543.43, y:776.57}, p2:{x:1600, y:800}, t:0, b:0, f:0.98};
game.a5 = {p0:{x:2048, y:656}, ang1:90, ang2:180, r:144, p1:{x:2192, y:656}, p2:{x:2048, y:800}, t:0, b:0, f:0.98};
game.a6 = {p0:{x:536, y:704}, ang1:135, ang2:270, r:96, p1:{x:468.12, y:771.88}, p2:{x:536, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:112, y:800}};
game.star1 = {p0:{x:2152, y:496}};
game.star2 = {p0:{x:2152, y:560}};
game.star3 = {p0:{x:2152, y:624}};
game.star4 = {p0:{x:1544, y:672}};
game.star5 = {p0:{x:648, y:664}};
game.star6 = {p0:{x:688, y:664}};
game.star7 = {p0:{x:1096, y:672}};
game.star8 = {p0:{x:1288, y:608}};
game.star9 = {p0:{x:1200, y:656}};
showText = " Lesson #2: Before you can finish you'll have to collect all stars. You can turn around on your bike by pressing the spacebar.";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 9
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 9
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 9
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 9
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 9
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 10
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 10
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 11
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(1);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:128, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:200, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:5, nrCps:1, nrWalls:17, nrCircles:4, nrArcs:1};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:424, y:776}, p1:{x:392, y:832}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:600, y:704}, p1:{x:776, y:560}, b:0.7, f:10, d:0, t:6, s:0};
game.v4 = {p0:{x:776, y:560}, p1:{x:952, y:536}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:952, y:536}, p1:{x:1032, y:368}, b:0, f:0.98, d:0, t:0, s:0};
game.v6 = {p0:{x:1128, y:368}, p1:{x:1128, y:792}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:1142, y:800}, p1:{x:1232, y:710}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:1322, y:710}, p1:{x:1400, y:784}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:600, y:800}, p1:{x:600, y:704}, b:0, f:0.98, d:0, t:1, s:0};
game.v10 = {p0:{x:400, y:792}, p1:{x:600, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v11 = {p0:{x:1400, y:784}, p1:{x:1744, y:784}, b:0.7, f:10, d:0, t:6, s:0};
game.v12 = {p0:{x:1744, y:784}, p1:{x:1776, y:744}, b:0.7, f:10, d:0, t:6, s:0};
game.v13 = {p0:{x:1776, y:744}, p1:{x:1840, y:704}, b:0.7, f:10, d:0, t:6, s:0};
game.v14 = {p0:{x:1840, y:704}, p1:{x:2016, y:704}, b:0.7, f:10, d:0, t:6, s:0};
game.v15 = {p0:{x:2064, y:656}, p1:{x:2296, y:512}, b:0, f:0.98, d:0, t:0, s:0};
game.v16 = {p0:{x:2296, y:512}, p1:{x:2456, y:512}, b:0, f:0.98, d:0, t:1, s:0};
game.v17 = {p0:{x:2544, y:600}, p1:{x:2544, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.c1 = {p0:{x:1080, y:368}, r:48, t:1, b:0, f:0.98};
game.c2 = {p0:{x:1279, y:748}, r:57, t:99, b:0, f:0.98};
game.c3 = {p0:{x:2064, y:704}, r:48, t:1, b:0, f:0.98};
game.c4 = {p0:{x:2456, y:600}, r:88, t:1, b:0, f:0.98};
game.a1 = {p0:{x:344, y:688}, ang1:90, ang2:225, r:112, p1:{x:423.2, y:767.2}, p2:{x:344, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2656, y:800}};
game.so1 = {type:3, p0:{x:1142, y:690}};
game.star1 = {p0:{x:1120, y:304}};
game.star2 = {p0:{x:856, y:496}};
game.star3 = {p0:{x:496, y:680}};
game.star4 = {p0:{x:1272, y:640}};
game.star5 = {p0:{x:1568, y:736}};
showText = " Lesson 3#: On ice you'll need all the grip you can get. So spread your weight over both wheels. Also make sure you have enough speed.";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 11
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 11
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 11
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 11
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 11
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 12
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 12
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 13
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:488, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:560, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:2, nrStars:11, nrCps:1, nrWalls:23, nrCircles:5, nrArcs:2};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:1206, y:800}, p1:{x:1296, y:710}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:1386, y:710}, p1:{x:1476, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:1676, y:596}, p1:{x:2059, y:596}, b:0, f:0.98, d:0, t:99, s:0};
game.v5 = {p0:{x:2059, y:596}, p1:{x:2059, y:615}, b:0, f:0.98, d:0, t:99, s:0};
game.v6 = {p0:{x:2059, y:615}, p1:{x:2110, y:630}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:2110, y:630}, p1:{x:2180, y:630}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:2180, y:630}, p1:{x:2203, y:778}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:1739, y:801}, p1:{x:1676, y:742}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:1676, y:742}, p1:{x:1676, y:596}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:1520, y:272}, p1:{x:1792, y:256}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:1536, y:656}, p1:{x:1676, y:596}, b:0, f:0.98, d:0, t:7, s:0};
game.v13 = {p0:{x:1552, y:808}, p1:{x:1536, y:656}, b:0, f:0.98, d:0, t:7, s:0};
game.v14 = {p0:{x:824, y:736}, p1:{x:992, y:504}, b:0, f:0.98, d:0, t:1, s:0};
game.v15 = {p0:{x:672, y:792}, p1:{x:872, y:791.48}, b:0, f:0.98, d:1, t:0, s:0};
game.v16 = {p0:{x:1008, y:848}, p1:{x:1240, y:784}, b:0, f:0.98, d:0, t:99, s:0};
game.v17 = {p0:{x:992, y:504}, p1:{x:1024, y:504}, b:0, f:0.98, d:0, t:1, s:0};
game.v18 = {p0:{x:1024, y:504}, p1:{x:1040, y:528}, b:0, f:0.98, d:0, t:1, s:0};
game.v19 = {p0:{x:1040, y:528}, p1:{x:904, y:720}, b:0, f:0.98, d:0, t:1, s:0};
game.v20 = {p0:{x:848, y:752}, p1:{x:824, y:736}, b:0, f:0.98, d:0, t:1, s:0};
game.v21 = {p0:{x:904, y:720}, p1:{x:848, y:752}, b:0, f:0.98, d:0, t:1, s:0};
game.v22 = {p0:{x:3168, y:792}, p1:{x:3368, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v23 = {p0:{x:3368, y:792}, p1:{x:3336, y:632}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:1343, y:748}, r:57, t:99, b:0, f:0.98};
game.c2 = {p0:{x:2256, y:752}, r:64, t:0, b:0, f:0.98};
game.c3 = {p0:{x:688, y:760}, r:67.88, t:3, b:0, f:0.98};
game.c4 = {p0:{x:2512, y:736}, r:72, t:3, b:0, f:0.98};
game.c5 = {p0:{x:2624, y:760}, r:48, t:0, b:0, f:0.98};
game.a1 = {p0:{x:216, y:688}, ang1:90, ang2:225, r:112, p1:{x:295.2, y:767.2}, p2:{x:216, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:376, y:688}, ang1:135, ang2:270, r:112, p1:{x:296.8, y:767.2}, p2:{x:376, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:1344, y:696}};
game.so1 = {type:3, p0:{x:1206, y:690}};
game.so2 = {type:2, p0:{x:1676, y:596}};
game.star1 = {p0:{x:1872, y:576}};
game.star2 = {p0:{x:896, y:552}};
game.star3 = {p0:{x:688, y:608}};
game.star4 = {p0:{x:296, y:704}};
game.star5 = {p0:{x:1792, y:576}};
game.star6 = {p0:{x:1960, y:576}};
game.star7 = {p0:{x:2632, y:680}};
game.star8 = {p0:{x:2512, y:624}};
game.star9 = {p0:{x:2984, y:768}};
game.star10 = {p0:{x:3048, y:768}};
game.star11 = {p0:{x:3112, y:768}};
showText = " Lesson #4: By pressing the left and right arrow you can also adjust the grips of your motor to left or right.";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 13
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 13
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 13
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 13
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 13
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 14
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 14
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 15
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:168, y:792}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:240, y:792}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:8, nrCps:1, nrWalls:32, nrCircles:3, nrArcs:3};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:416, y:808}, p1:{x:416, y:720}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:416, y:720}, p1:{x:488, y:720}, b:0, f:0.98, d:0, t:1, s:0};
game.v4 = {p0:{x:488, y:720}, p1:{x:488, y:816}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:352, y:816}, p1:{x:416, y:720}, b:0, f:0.98, d:0, t:7, s:0};
game.v6 = {p0:{x:416, y:720}, p1:{x:432, y:848}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:488, y:768}, p1:{x:520, y:808}, b:0, f:0.98, d:0, t:7, s:0};
game.v8 = {p0:{x:648, y:632}, p1:{x:688, y:632}, b:0, f:0.98, d:0, t:3, s:0};
game.v9 = {p0:{x:688, y:632}, p1:{x:688, y:672}, b:0, f:0.98, d:0, t:4, s:0};
game.v10 = {p0:{x:688, y:672}, p1:{x:648, y:672}, b:0, f:0.98, d:0, t:4, s:0};
game.v11 = {p0:{x:648, y:672}, p1:{x:648, y:632}, b:0, f:0.98, d:0, t:4, s:0};
game.v12 = {p0:{x:608, y:816}, p1:{x:648, y:672}, b:0, f:0.98, d:0, t:7, s:0};
game.v13 = {p0:{x:688, y:672}, p1:{x:720, y:784}, b:0, f:0.98, d:0, t:7, s:0};
game.v14 = {p0:{x:1016, y:800}, p1:{x:1016, y:568}, b:0, f:0.98, d:0, t:1, s:0};
game.v15 = {p0:{x:1016, y:568}, p1:{x:1056, y:568}, b:0, f:0.98, d:0, t:1, s:0};
game.v16 = {p0:{x:1056, y:568}, p1:{x:1056, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v17 = {p0:{x:1056, y:672}, p1:{x:1296, y:672}, b:0, f:0.98, d:0, t:1, s:0};
game.v18 = {p0:{x:1384, y:656}, p1:{x:1456, y:816}, b:0, f:0.98, d:0, t:7, s:0};
game.v19 = {p0:{x:2042, y:732}, p1:{x:2042, y:586}, b:0, f:0.98, d:0, t:99, s:0};
game.v20 = {p0:{x:2042, y:586}, p1:{x:2425, y:586}, b:0, f:0.98, d:0, t:99, s:0};
game.v21 = {p0:{x:1432, y:616}, p1:{x:1384, y:656}, b:0, f:0.98, d:0, t:99, s:0};
game.v22 = {p0:{x:2425, y:586}, p1:{x:2425, y:605}, b:0, f:0.98, d:0, t:99, s:0};
game.v23 = {p0:{x:2105, y:791}, p1:{x:2042, y:732}, b:0, f:0.98, d:0, t:99, s:0};
game.v24 = {p0:{x:2425, y:605}, p1:{x:2476, y:620}, b:0, f:0.98, d:0, t:99, s:0};
game.v25 = {p0:{x:2476, y:620}, p1:{x:2546, y:620}, b:0, f:0.98, d:0, t:99, s:0};
game.v26 = {p0:{x:2546, y:620}, p1:{x:2569, y:768}, b:0, f:0.98, d:0, t:99, s:0};
game.v27 = {p0:{x:336, y:800}, p1:{x:376, y:784}, b:0, f:0.98, d:0, t:7, s:0};
game.v28 = {p0:{x:2696, y:800}, p1:{x:2704, y:608}, b:0, f:0.98, d:0, t:7, s:0};
game.v29 = {p0:{x:2768, y:608}, p1:{x:2784, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v30 = {p0:{x:2864, y:792}, p1:{x:3064, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v31 = {p0:{x:1872, y:816}, p1:{x:1880, y:608}, b:0, f:0.98, d:0, t:7, s:0};
game.v32 = {p0:{x:1880, y:608}, p1:{x:2042, y:586}, b:0, f:0.98, d:0, t:7, s:0};
game.c1 = {p0:{x:2736, y:608}, r:32, t:3, b:0, f:0.98};
game.c2 = {p0:{x:2872, y:760}, r:48, t:3, b:0, f:0.98};
game.c3 = {p0:{x:3056, y:784}, r:32, t:3, b:0, f:0.98};
game.a1 = {p0:{x:776, y:728}, ang1:135, ang2:270, r:79.2, p1:{x:720, y:784}, p2:{x:776, y:807.2}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:872, y:656}, ang1:90, ang2:180, r:144, p1:{x:1016, y:656}, p2:{x:872, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:1296, y:480}, ang1:90, ang2:225, r:192, p1:{x:1431.76, y:615.76}, p2:{x:1296, y:672}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:3288, y:800}};
game.so1 = {type:2, p0:{x:2042, y:586}};
game.star1 = {p0:{x:576, y:752}};
game.star2 = {p0:{x:2736, y:528}};
game.star3 = {p0:{x:2984, y:680}};
game.star4 = {p0:{x:2232, y:544}};
game.star5 = {p0:{x:664, y:584}};
game.star6 = {p0:{x:840, y:744}};
game.star7 = {p0:{x:1032, y:520}};
game.star8 = {p0:{x:1536, y:528}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 15
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 15
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 15
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 15
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 15
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 16
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 16
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 17
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:224, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:304, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:15, nrCps:1, nrWalls:27, nrCircles:12, nrArcs:3};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:760, y:800}, p1:{x:760, y:512}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:760, y:512}, p1:{x:736, y:432}, b:0, f:0.98, d:0, t:1, s:0};
game.v4 = {p0:{x:288, y:496}, p1:{x:544, y:496}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:128, y:304}, p1:{x:128, y:336}, b:0, f:0.98, d:0, t:1, s:0};
game.v6 = {p0:{x:952, y:360}, p1:{x:1112, y:144}, b:0, f:0.98, d:0, t:7, s:0};
game.v7 = {p0:{x:144, y:264}, p1:{x:128, y:304}, b:0, f:0.98, d:0, t:0, s:0};
game.v8 = {p0:{x:272, y:272}, p1:{x:464, y:216}, b:0, f:0.98, d:0, t:0, s:0};
game.v9 = {p0:{x:544, y:208}, p1:{x:688, y:200}, b:0, f:0.98, d:0, t:0, s:0};
game.v10 = {p0:{x:768, y:216}, p1:{x:904, y:176}, b:0, f:0.98, d:0, t:0, s:0};
game.v11 = {p0:{x:728, y:416}, p1:{x:960, y:584}, b:0, f:0.98, d:0, t:7, s:0};
game.v12 = {p0:{x:768, y:504}, p1:{x:768, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:744, y:432}, p1:{x:768, y:504}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:960, y:584}, p1:{x:960, y:792}, b:0, f:0.98, d:0, t:7, s:0};
game.v15 = {p0:{x:1184, y:696}, p1:{x:1304, y:672}, b:0, f:0.98, d:0, t:7, s:0};
game.v16 = {p0:{x:1352, y:848}, p1:{x:1416, y:640}, b:0, f:0.98, d:0, t:7, s:0};
game.v17 = {p0:{x:1408, y:672}, p1:{x:1544, y:832}, b:0, f:0.98, d:0, t:7, s:0};
game.v18 = {p0:{x:960, y:792}, p1:{x:1160, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v19 = {p0:{x:2192, y:768}, p1:{x:2320, y:656}, b:0, f:0.98, d:0, t:0, s:0};
game.v20 = {p0:{x:2032, y:792}, p1:{x:2232, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v21 = {p0:{x:2024, y:768}, p1:{x:2024, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v22 = {p0:{x:2320, y:664}, p1:{x:2320, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v23 = {p0:{x:1328, y:712}, p1:{x:1304, y:840}, b:0, f:0.98, d:0, t:7, s:0};
game.v24 = {p0:{x:800, y:256}, p1:{x:768, y:224}, b:0, f:0.98, d:0, t:1, s:0};
game.v25 = {p0:{x:904, y:192}, p1:{x:800, y:256}, b:0, f:0.98, d:0, t:1, s:0};
game.v26 = {p0:{x:608, y:248}, p1:{x:544, y:224}, b:0, f:0.98, d:0, t:1, s:0};
game.v27 = {p0:{x:688, y:216}, p1:{x:608, y:248}, b:0, f:0.98, d:0, t:1, s:0};
game.c1 = {p0:{x:544, y:576}, r:80, t:1, b:0, f:0.98};
game.c2 = {p0:{x:280, y:312}, r:51.22, t:1, b:0, f:0.98};
game.c3 = {p0:{x:968, y:384}, r:32, t:1, b:0, f:0.98};
game.c4 = {p0:{x:1136, y:168}, r:32, t:1, b:0, f:0.98};
game.c5 = {p0:{x:1216, y:760}, r:73.76, t:3, b:0, f:0.98};
game.c6 = {p0:{x:1304, y:696}, r:32, t:3, b:0, f:0.98};
game.c7 = {p0:{x:1464, y:608}, r:56.57, t:3, b:0, f:0.98};
game.c8 = {p0:{x:1560, y:528}, r:32, t:3, b:0, f:0.98};
game.c9 = {p0:{x:1648, y:752}, r:72.44, t:3, b:0, f:0.98};
game.c10 = {p0:{x:1592, y:624}, r:67.88, t:3, b:0, f:0.98};
game.c11 = {p0:{x:1552, y:792}, r:32, t:3, b:0, f:0.98};
game.c12 = {p0:{x:1504, y:712}, r:56, t:3, b:0, f:0.98};
game.a1 = {p0:{x:608, y:648}, ang1:90, ang2:180, r:152, p1:{x:760, y:648}, p2:{x:608, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:288, y:336}, ang1:180, ang2:270, r:160, p1:{x:128, y:336}, p2:{x:288, y:496}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:1936, y:680}, ang1:90, ang2:225, r:120, p1:{x:2020.85, y:764.85}, p2:{x:1936, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2624, y:800}};
game.star1 = {p0:{x:384, y:768}};
game.star2 = {p0:{x:448, y:768}};
game.star3 = {p0:{x:512, y:768}};
game.star4 = {p0:{x:184, y:304}};
game.star5 = {p0:{x:208, y:240}};
game.star6 = {p0:{x:624, y:152}};
game.star7 = {p0:{x:664, y:328}};
game.star8 = {p0:{x:576, y:312}};
game.star9 = {p0:{x:488, y:312}};
game.star10 = {p0:{x:912, y:320}};
game.star11 = {p0:{x:832, y:432}};
game.star12 = {p0:{x:912, y:480}};
game.star13 = {p0:{x:1560, y:456}};
game.star14 = {p0:{x:1224, y:648}};
game.star15 = {p0:{x:2224, y:672}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 17
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 17
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 17
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 17
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 17
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 18
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 18
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 19
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:1872, y:624}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:1944, y:624}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:12, nrCps:1, nrWalls:27, nrCircles:7, nrArcs:2};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:2504, y:640}, p1:{x:2504, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:2568, y:640}, p1:{x:2568, y:432}, b:0, f:0.98, d:0, t:1, s:0};
game.v4 = {p0:{x:1808, y:640}, p1:{x:1984, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:1808, y:520}, p1:{x:1808, y:648}, b:0, f:0.98, d:0, t:1, s:0};
game.v6 = {p0:{x:1800, y:512}, p1:{x:1960, y:496}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:1960, y:496}, p1:{x:1808, y:520}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:1800, y:640}, p1:{x:1800, y:512}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:2568, y:432}, p1:{x:2432, y:432}, b:0, f:0.98, d:0, t:1, s:0};
game.v10 = {p0:{x:1454, y:660}, p1:{x:1632, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:1454, y:694}, p1:{x:1454, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:1632, y:660}, p1:{x:1632, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:1612, y:694}, p1:{x:1612, y:801}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:1473, y:801}, p1:{x:1473, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:1120, y:536}, p1:{x:1288, y:736}, b:0, f:0.98, d:0, t:0, s:0};
game.v16 = {p0:{x:1256, y:792}, p1:{x:1456, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v17 = {p0:{x:592, y:824}, p1:{x:832, y:504}, b:0, f:0.98, d:0, t:7, s:0};
game.v18 = {p0:{x:392, y:792}, p1:{x:592, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v19 = {p0:{x:328, y:752}, p1:{x:384, y:816}, b:0, f:0.98, d:0, t:7, s:0};
game.v20 = {p0:{x:1032, y:520}, p1:{x:1096, y:528}, b:0, f:0.98, d:0, t:1, s:0};
game.v21 = {p0:{x:1808, y:552}, p1:{x:1840, y:512}, b:0, f:0.98, d:0, t:99, s:0};
game.v22 = {p0:{x:1080, y:576}, p1:{x:1040, y:528}, b:0, f:0.98, d:0, t:99, s:0};
game.v23 = {p0:{x:1712, y:824}, p1:{x:1792, y:648}, b:0, f:0.98, d:0, t:7, s:0};
game.v24 = {p0:{x:80, y:808}, p1:{x:192, y:720}, b:0, f:0.98, d:0, t:7, s:0};
game.v25 = {p0:{x:192, y:720}, p1:{x:184, y:792}, b:0, f:0.98, d:0, t:99, s:0};
game.v26 = {p0:{x:176, y:792}, p1:{x:375.97, y:795.32}, b:0, f:0.98, d:1, t:0, s:0};
game.v27 = {p0:{x:2496, y:640}, p1:{x:2504, y:640}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:1224, y:760}, r:56, t:0, b:0, f:0.98};
game.c2 = {p0:{x:1096, y:560}, r:32, t:1, b:0, f:0.98};
game.c3 = {p0:{x:864, y:536}, r:48, t:1, b:0, f:0.98};
game.c4 = {p0:{x:48, y:672}, r:32, t:3, b:0, f:0.98};
game.c5 = {p0:{x:-16, y:760}, r:80, t:3, b:0, f:0.98};
game.c6 = {p0:{x:104, y:728}, r:48.66, t:3, b:0, f:0.98};
game.c7 = {p0:{x:160, y:784}, r:32, t:3, b:0, f:0.98};
game.a1 = {p0:{x:2336, y:640}, ang1:90, ang2:180, r:160, p1:{x:2496, y:640}, p2:{x:2336, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:2144, y:640}, ang1:180, ang2:270, r:160, p1:{x:1984, y:640}, p2:{x:2144, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:48, y:640}};
game.so1 = {type:1, p0:{x:1454, y:660}};
game.star1 = {p0:{x:1656, y:544}};
game.star2 = {p0:{x:1600, y:560}};
game.star3 = {p0:{x:1552, y:600}};
game.star4 = {p0:{x:1488, y:576}};
game.star5 = {p0:{x:1408, y:560}};
game.star6 = {p0:{x:272, y:688}};
game.star7 = {p0:{x:1328, y:560}};
game.star8 = {p0:{x:176, y:680}};
game.star9 = {p0:{x:680, y:616}};
game.star10 = {p0:{x:576, y:680}};
game.star11 = {p0:{x:968, y:464}};
game.star12 = {p0:{x:2456, y:456}};
showText = " Tip: By making frontflips, backfips and wheelies you can reduce your time.";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 19
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 19
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 19
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 19
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 19
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 20
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 20
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 21
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:168, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:240, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:3, nrStars:11, nrCps:1, nrWalls:27, nrCircles:7, nrArcs:0};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:960, y:800}, p1:{x:1050, y:710}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:1140, y:710}, p1:{x:1230, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:1602, y:596}, p1:{x:1985, y:596}, b:0, f:0.98, d:0, t:99, s:0};
game.v5 = {p0:{x:1985, y:596}, p1:{x:1985, y:615}, b:0, f:0.98, d:0, t:99, s:0};
game.v6 = {p0:{x:1985, y:615}, p1:{x:2036, y:630}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:2036, y:630}, p1:{x:2106, y:630}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:2106, y:630}, p1:{x:2129, y:778}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:1584, y:736}, p1:{x:1602, y:596}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:1665, y:801}, p1:{x:1584, y:736}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:3056, y:816}, p1:{x:3192, y:744}, b:0, f:0.98, d:0, t:1, s:0};
game.v12 = {p0:{x:2384, y:726}, p1:{x:2384, y:580}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:2384, y:580}, p1:{x:2767, y:580}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:2767, y:580}, p1:{x:2767, y:599}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:2767, y:599}, p1:{x:2818, y:614}, b:0, f:0.98, d:0, t:99, s:0};
game.v16 = {p0:{x:2818, y:614}, p1:{x:2888, y:614}, b:0, f:0.98, d:0, t:99, s:0};
game.v17 = {p0:{x:2888, y:614}, p1:{x:2911, y:762}, b:0, f:0.98, d:0, t:99, s:0};
game.v18 = {p0:{x:2447, y:785}, p1:{x:2384, y:726}, b:0, f:0.98, d:0, t:99, s:0};
game.v19 = {p0:{x:2911, y:762}, p1:{x:2816, y:768}, b:0, f:0.98, d:0, t:99, s:0};
game.v20 = {p0:{x:2160, y:792}, p1:{x:2360, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v21 = {p0:{x:3192, y:744}, p1:{x:3208, y:752}, b:0, f:0.98, d:0, t:1, s:0};
game.v22 = {p0:{x:3208, y:752}, p1:{x:3184, y:808}, b:0, f:0.98, d:0, t:1, s:0};
game.v23 = {p0:{x:3376, y:808}, p1:{x:3376, y:672}, b:0, f:0.98, d:0, t:1, s:0};
game.v24 = {p0:{x:3376, y:672}, p1:{x:3400, y:648}, b:0, f:0.98, d:0, t:1, s:0};
game.v25 = {p0:{x:3400, y:648}, p1:{x:3584, y:608}, b:0, f:0.98, d:0, t:1, s:0};
game.v26 = {p0:{x:3184, y:792}, p1:{x:3384, y:791.73}, b:0, f:0.98, d:1, t:0, s:0};
game.v27 = {p0:{x:2400, y:792}, p1:{x:2928, y:792}, b:0, f:0.98, d:0, t:1, s:0};
game.c1 = {p0:{x:1097, y:748}, r:57, t:99, b:0, f:0.98};
game.c2 = {p0:{x:1264, y:768}, r:48, t:3, b:0, f:0.98};
game.c3 = {p0:{x:3552, y:736}, r:106.73, t:0, b:0, f:0.98};
game.c4 = {p0:{x:2304, y:752}, r:40, t:3, b:0, f:0.98};
game.c5 = {p0:{x:2352, y:608}, r:32, t:3, b:0, f:0.98};
game.c6 = {p0:{x:2344, y:680}, r:40, t:3, b:0, f:0.98};
game.c7 = {p0:{x:2344, y:680}, r:40, t:3, b:0, f:0.98};
game.cp1 = {p0:{x:3584, y:608}};
game.so1 = {type:3, p0:{x:960, y:690}};
game.so2 = {type:2, p0:{x:1602, y:596}};
game.so3 = {type:2, p0:{x:2384, y:580}};
game.star1 = {p0:{x:1376, y:536}};
game.star2 = {p0:{x:1472, y:544}};
game.star3 = {p0:{x:1288, y:544}};
game.star4 = {p0:{x:1552, y:560}};
game.star5 = {p0:{x:408, y:760}};
game.star6 = {p0:{x:656, y:760}};
game.star7 = {p0:{x:888, y:760}};
game.star8 = {p0:{x:3280, y:608}};
game.star9 = {p0:{x:2464, y:544}};
game.star10 = {p0:{x:2688, y:544}};
game.star11 = {p0:{x:2576, y:544}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 21
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 21
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 21
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 21
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 21
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 22
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 22
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 23
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(1);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:88, y:760}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:160, y:760}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:9, nrCps:1, nrWalls:10, nrCircles:15, nrArcs:1};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:296, y:816}, p1:{x:352, y:760}, b:0, f:0.98, d:0, t:7, s:0};
game.v3 = {p0:{x:1024, y:760}, p1:{x:1024, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:512, y:568}, p1:{x:640, y:808}, b:0, f:0.98, d:0, t:7, s:0};
game.v5 = {p0:{x:1344, y:680}, p1:{x:1512, y:576}, b:0, f:0.98, d:0, t:0, s:0};
game.v6 = {p0:{x:1512, y:576}, p1:{x:1608, y:512}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:2448, y:792}, p1:{x:2647.99, y:793.83}, b:0, f:0.98, d:1, t:0, s:0};
game.v8 = {p0:{x:2672, y:792}, p1:{x:2872, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v9 = {p0:{x:3848, y:640}, p1:{x:3885.18, y:443.49}, b:0, f:0.98, d:1, t:0, s:0};
game.v10 = {p0:{x:2928, y:792}, p1:{x:3128, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.c1 = {p0:{x:408, y:760}, r:64, t:3, b:0, f:0.98};
game.c2 = {p0:{x:536, y:752}, r:64, t:3, b:0, f:0.98};
game.c3 = {p0:{x:464, y:656}, r:58.24, t:3, b:0, f:0.98};
game.c4 = {p0:{x:1312, y:536}, r:32, t:1, b:0, f:0.98};
game.c5 = {p0:{x:1360, y:704}, r:32, t:1, b:0, f:0.98};
game.c6 = {p0:{x:480, y:568}, r:32, t:3, b:0, f:0.98};
game.c7 = {p0:{x:1760, y:584}, r:48, t:1, b:0, f:0.98};
game.c8 = {p0:{x:1928, y:624}, r:48, t:1, b:0, f:0.98};
game.c9 = {p0:{x:2192, y:536}, r:48, t:1, b:0, f:0.98};
game.c10 = {p0:{x:2040, y:688}, r:24, t:1, b:0, f:0.98};
game.c11 = {p0:{x:2136, y:656}, r:24, t:1, b:0, f:0.98};
game.c12 = {p0:{x:2432, y:768}, r:48, t:3, b:0, f:0.98};
game.c13 = {p0:{x:2640, y:744}, r:72.44, t:3, b:0, f:0.98};
game.c14 = {p0:{x:2896, y:752}, r:65.97, t:3, b:0, f:0.98};
game.c15 = {p0:{x:3152, y:752}, r:65.97, t:3, b:0, f:0.98};
game.a1 = {p0:{x:912, y:640}, ang1:90, ang2:225, r:160, p1:{x:1025.14, y:753.14}, p2:{x:912, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:3160, y:688}};
game.star1 = {p0:{x:1856, y:528}};
game.star2 = {p0:{x:1536, y:504}};
game.star3 = {p0:{x:1328, y:632}};
game.star4 = {p0:{x:480, y:488}};
game.star5 = {p0:{x:1760, y:480}};
game.star6 = {p0:{x:1424, y:560}};
game.star7 = {p0:{x:984, y:704}};
game.star8 = {p0:{x:912, y:736}};
game.star9 = {p0:{x:824, y:752}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 23
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 23
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 23
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 23
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 23
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 24
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 24
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 25
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:1872, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:1944, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:2, nrStars:9, nrCps:1, nrWalls:24, nrCircles:6, nrArcs:7};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:1808, y:632}, p1:{x:1808, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:1800, y:632}, p1:{x:1808, y:632}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:1808, y:440}, p1:{x:2096, y:440}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:3041, y:801}, p1:{x:3041, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v6 = {p0:{x:3022, y:694}, p1:{x:3022, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:3022, y:660}, p1:{x:3200, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:3180, y:694}, p1:{x:3180, y:801}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:3200, y:660}, p1:{x:3200, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:3040, y:720}, p1:{x:3022, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:3304, y:816}, p1:{x:3456, y:672}, b:0, f:0.98, d:0, t:7, s:0};
game.v12 = {p0:{x:3296, y:816}, p1:{x:3442.08, y:679.4}, b:0, f:0.98, d:1, t:0, s:0};
game.v13 = {p0:{x:3456, y:560}, p1:{x:3456, y:808}, b:0, f:0.98, d:0, t:7, s:0};
game.v14 = {p0:{x:1096, y:805}, p1:{x:1116, y:787}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:1312, y:800}, p1:{x:1312, y:712}, b:0, f:0.98, d:0, t:1, s:0};
game.v16 = {p0:{x:1312, y:712}, p1:{x:1320, y:712}, b:0, f:0.98, d:0, t:99, s:0};
game.v17 = {p0:{x:672, y:648}, p1:{x:680, y:808}, b:0, f:0.98, d:0, t:7, s:0};
game.v18 = {p0:{x:464, y:832}, p1:{x:672, y:648}, b:0, f:0.98, d:0, t:7, s:0};
game.v19 = {p0:{x:544, y:608}, p1:{x:672, y:648}, b:0, f:0.98, d:0, t:7, s:0};
game.v20 = {p0:{x:680, y:808}, p1:{x:544, y:608}, b:0, f:0.98, d:0, t:7, s:0};
game.v21 = {p0:{x:440, y:800}, p1:{x:544, y:608}, b:0, f:0.98, d:0, t:7, s:0};
game.v22 = {p0:{x:368, y:816}, p1:{x:480, y:736}, b:0, f:0.98, d:0, t:7, s:0};
game.v23 = {p0:{x:888, y:824}, p1:{x:864, y:768}, b:0, f:0.98, d:0, t:99, s:0};
game.v24 = {p0:{x:688, y:792}, p1:{x:888, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.c1 = {p0:{x:3232, y:688}, r:32, t:3, b:0, f:0.98};
game.c2 = {p0:{x:3248, y:784}, r:64.5, t:3, b:0, f:0.98};
game.c3 = {p0:{x:3408, y:656}, r:48, t:3, b:0, f:0.98};
game.c4 = {p0:{x:3392, y:776}, r:32, t:3, b:0, f:0.98};
game.c5 = {p0:{x:1136, y:788}, r:15, t:99, b:0, f:0.98};
game.c6 = {p0:{x:3408, y:560}, r:48, t:3, b:0, f:0.98};
game.a1 = {p0:{x:1632, y:632}, ang1:90, ang2:180, r:168, p1:{x:1800, y:632}, p2:{x:1632, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:1960, y:640}, ang1:90, ang2:180, r:160, p1:{x:2120, y:640}, p2:{x:1960, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:2280, y:640}, ang1:180, ang2:270, r:160, p1:{x:2120, y:640}, p2:{x:2280, y:800}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:2936, y:704}, ang1:90, ang2:180, r:96, p1:{x:3032, y:704}, p2:{x:2936, y:800}, t:0, b:0, f:0.98};
game.a5 = {p0:{x:3600, y:656}, ang1:180, ang2:270, r:144, p1:{x:3456, y:656}, p2:{x:3600, y:800}, t:0, b:0, f:0.98};
game.a6 = {p0:{x:1408, y:712}, ang1:180, ang2:270, r:88, p1:{x:1320, y:712}, p2:{x:1408, y:800}, t:0, b:0, f:0.98};
game.a7 = {p0:{x:944, y:688}, ang1:135, ang2:270, r:113.14, p1:{x:864, y:768}, p2:{x:944, y:801.14}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:1880, y:800}};
game.so1 = {type:1, p0:{x:3022, y:660}};
game.so2 = {type:4, p0:{x:1096, y:772}};
game.star1 = {p0:{x:3064, y:624}};
game.star2 = {p0:{x:3144, y:624}};
game.star3 = {p0:{x:3400, y:496}};
game.star4 = {p0:{x:3528, y:704}};
game.star5 = {p0:{x:2024, y:384}};
game.star6 = {p0:{x:1872, y:384}};
game.star7 = {p0:{x:1304, y:560}};
game.star8 = {p0:{x:784, y:432}};
game.star9 = {p0:{x:784, y:648}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 25
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 25
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 25
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 25
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 25
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 26
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 26
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 27
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:64, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:136, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:9, nrCps:1, nrWalls:9, nrCircles:4, nrArcs:7};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:416, y:640}, p1:{x:416, y:672}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:784, y:720}, p1:{x:784, y:608}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:1056, y:768}, p1:{x:1016, y:816}, b:0, f:0.98, d:0, t:99, s:0};
game.v5 = {p0:{x:1048, y:792}, p1:{x:1247.99, y:794}, b:0, f:0.98, d:1, t:0, s:0};
game.v6 = {p0:{x:1248, y:792}, p1:{x:1448, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v7 = {p0:{x:1496, y:832}, p1:{x:1440, y:768}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:1872, y:624}, p1:{x:1936, y:504}, b:0.7, f:10, d:0, t:6, s:0};
game.v9 = {p0:{x:1824, y:624}, p1:{x:1824, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:1984, y:512}, r:48, t:1, b:0, f:0.98};
game.c2 = {p0:{x:2112, y:616}, r:24, t:1, b:0, f:0.98};
game.c3 = {p0:{x:2272, y:496}, r:24, t:1, b:0, f:0.98};
game.c4 = {p0:{x:2280, y:728}, r:51.22, t:1, b:0, f:0.98};
game.a1 = {p0:{x:256, y:640}, ang1:90, ang2:180, r:160, p1:{x:416, y:640}, p2:{x:256, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:544, y:672}, ang1:180, ang2:270, r:128, p1:{x:416, y:672}, p2:{x:544, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:704, y:720}, ang1:90, ang2:180, r:80, p1:{x:784, y:720}, p2:{x:704, y:800}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:976, y:608}, ang1:180, ang2:270, r:192, p1:{x:784, y:608}, p2:{x:976, y:800}, t:0, b:0, f:0.98};
game.a5 = {p0:{x:976, y:688}, ang1:90, ang2:225, r:112, p1:{x:1055.2, y:767.2}, p2:{x:976, y:800}, t:0, b:0, f:0.98};
game.a6 = {p0:{x:1520, y:688}, ang1:135, ang2:270, r:112, p1:{x:1440.8, y:767.2}, p2:{x:1520, y:800}, t:0, b:0, f:0.98};
game.a7 = {p0:{x:1648, y:624}, ang1:90, ang2:180, r:176, p1:{x:1824, y:624}, p2:{x:1648, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2640, y:800}};
game.star1 = {p0:{x:1160, y:664}};
game.star2 = {p0:{x:1248, y:608}};
game.star3 = {p0:{x:1344, y:664}};
game.star4 = {p0:{x:416, y:560}};
game.star5 = {p0:{x:784, y:528}};
game.star6 = {p0:{x:2112, y:544}};
game.star7 = {p0:{x:2272, y:632}};
game.star8 = {p0:{x:1984, y:424}};
game.star9 = {p0:{x:1584, y:760}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 27
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 27
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 27
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 27
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 27
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 28
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 28
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 29
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:64, y:760}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:136, y:760}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:7, nrCps:1, nrWalls:6, nrCircles:19, nrArcs:0};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:1440, y:801}, p1:{x:1460, y:783}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:1495, y:784}, p1:{x:1504, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:2128, y:672}, p1:{x:2184, y:816}, b:0, f:0.98, d:0, t:7, s:0};
game.v5 = {p0:{x:512, y:704}, p1:{x:560, y:648}, b:0, f:0.98, d:0, t:7, s:0};
game.v6 = {p0:{x:600, y:656}, p1:{x:656, y:752}, b:0, f:0.98, d:0, t:7, s:0};
game.c1 = {p0:{x:256, y:776}, r:56.57, t:1, b:0, f:0.98};
game.c2 = {p0:{x:360, y:752}, r:48, t:1, b:0, f:0.98};
game.c3 = {p0:{x:296, y:696}, r:32, t:1, b:0, f:0.98};
game.c4 = {p0:{x:488, y:736}, r:64, t:1, b:0, f:0.98};
game.c5 = {p0:{x:576, y:624}, r:48, t:1, b:0, f:0.98};
game.c6 = {p0:{x:696, y:768}, r:56, t:0, b:0, f:0.98};
game.c7 = {p0:{x:800, y:704}, r:64, t:0, b:0, f:0.98};
game.c8 = {p0:{x:864, y:776}, r:32, t:0, b:0, f:0.98};
game.c9 = {p0:{x:1032, y:656}, r:48, t:0, b:0, f:0.98};
game.c10 = {p0:{x:1008, y:760}, r:56, t:0, b:0, f:0.98};
game.c11 = {p0:{x:1088, y:720}, r:32, t:0, b:0, f:0.98};
game.c12 = {p0:{x:1152, y:768}, r:48.66, t:0, b:0, f:0.98};
game.c13 = {p0:{x:1480, y:784}, r:15, t:99, b:0, f:0.98};
game.c14 = {p0:{x:1656, y:712}, r:88.36, t:3, b:0, f:0.98};
game.c15 = {p0:{x:1784, y:704}, r:40, t:3, b:0, f:0.98};
game.c16 = {p0:{x:1872, y:752}, r:58.24, t:3, b:0, f:0.98};
game.c17 = {p0:{x:1936, y:688}, r:32, t:3, b:0, f:0.98};
game.c18 = {p0:{x:2000, y:752}, r:56, t:3, b:0, f:0.98};
game.c19 = {p0:{x:2072, y:656}, r:64, t:3, b:0, f:0.98};
game.cp1 = {p0:{x:2384, y:800}};
game.so1 = {type:4, p0:{x:1440, y:768}};
game.star1 = {p0:{x:296, y:608}};
game.star2 = {p0:{x:576, y:528}};
game.star3 = {p0:{x:792, y:592}};
game.star4 = {p0:{x:1024, y:568}};
game.star5 = {p0:{x:1656, y:576}};
game.star6 = {p0:{x:1896, y:656}};
game.star7 = {p0:{x:2064, y:544}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 29
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 29
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 29
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 29
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 29
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 30
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 30
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 31
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:424, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:496, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:2, nrStars:13, nrCps:1, nrWalls:16, nrCircles:9, nrArcs:4};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:-80, y:416}, p1:{x:-152, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:736, y:800}, p1:{x:736, y:528}, b:0, f:0.98, d:0, t:1, s:0};
game.v4 = {p0:{x:880, y:528}, p1:{x:880, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:1048, y:440}, p1:{x:1328, y:408}, b:0, f:0.98, d:0, t:1, s:0};
game.v6 = {p0:{x:1440, y:660}, p1:{x:1618, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:1440, y:694}, p1:{x:1440, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:1459, y:801}, p1:{x:1459, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:1598, y:694}, p1:{x:1598, y:801}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:1618, y:660}, p1:{x:1618, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:1328, y:472}, p1:{x:1048, y:536}, b:0, f:0.98, d:0, t:1, s:0};
game.v12 = {p0:{x:1336, y:408}, p1:{x:1648, y:552}, b:0, f:0.98, d:0, t:7, s:0};
game.v13 = {p0:{x:1344, y:432}, p1:{x:1336, y:408}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:1266, y:801}, p1:{x:1286, y:783}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:1648, y:560}, p1:{x:1680, y:832}, b:0, f:0.98, d:0, t:7, s:0};
game.v16 = {p0:{x:1632, y:640}, p1:{x:1648, y:560}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:808, y:528}, r:72, t:1, b:0, f:0.98};
game.c2 = {p0:{x:1048, y:488}, r:48, t:1, b:0, f:0.98};
game.c3 = {p0:{x:1328, y:440}, r:32, t:1, b:0, f:0.98};
game.c4 = {p0:{x:1768, y:720}, r:40, t:1, b:0, f:0.98};
game.c5 = {p0:{x:1306, y:784}, r:15, t:99, b:0, f:0.98};
game.c6 = {p0:{x:1584, y:592}, r:65.97, t:0, b:0, f:0.98};
game.c7 = {p0:{x:1904, y:648}, r:40, t:1, b:0, f:0.98};
game.c8 = {p0:{x:1968, y:792}, r:48, t:0, b:0, f:0.98};
game.c9 = {p0:{x:2056, y:760}, r:48, t:3, b:0, f:0.98};
game.a1 = {p0:{x:608, y:672}, ang1:90, ang2:180, r:128, p1:{x:736, y:672}, p2:{x:608, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:1008, y:672}, ang1:180, ang2:270, r:128, p1:{x:880, y:672}, p2:{x:1008, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:2560, y:712}, ang1:90, ang2:225, r:90.51, p1:{x:2624, y:776}, p2:{x:2560, y:802.51}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:2688, y:712}, ang1:135, ang2:270, r:90.51, p1:{x:2624, y:776}, p2:{x:2688, y:802.51}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2240, y:800}};
game.so1 = {type:1, p0:{x:1440, y:660}};
game.so2 = {type:4, p0:{x:1266, y:768}};
game.star1 = {p0:{x:608, y:456}};
game.star2 = {p0:{x:896, y:400}};
game.star3 = {p0:{x:984, y:368}};
game.star4 = {p0:{x:1080, y:352}};
game.star5 = {p0:{x:1392, y:672}};
game.star6 = {p0:{x:1472, y:600}};
game.star7 = {p0:{x:1856, y:576}};
game.star8 = {p0:{x:1784, y:528}};
game.star9 = {p0:{x:1696, y:496}};
game.star10 = {p0:{x:2864, y:648}};
game.star11 = {p0:{x:2944, y:608}};
game.star12 = {p0:{x:3024, y:584}};
game.star13 = {p0:{x:3104, y:576}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 31
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 31
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 31
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 31
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 31
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 32
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 32
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 33
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:72, y:792}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:144, y:792}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:19, nrCps:1, nrWalls:16, nrCircles:19, nrArcs:3};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:672, y:608}, p1:{x:816, y:816}, b:0, f:0.98, d:0, t:7, s:0};
game.v3 = {p0:{x:1136, y:688}, p1:{x:1144, y:688}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:1136, y:800}, p1:{x:1136, y:688}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:1568, y:792}, p1:{x:1768, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v6 = {p0:{x:1608, y:768}, p1:{x:1576, y:832}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:1768, y:792}, p1:{x:1968, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v8 = {p0:{x:1968, y:792}, p1:{x:2168, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v9 = {p0:{x:2558, y:764}, p1:{x:2558, y:730}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:2558, y:730}, p1:{x:2736, y:730}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:2736, y:730}, p1:{x:2736, y:764}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:2577, y:871}, p1:{x:2577, y:764}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:2716, y:764}, p1:{x:2716, y:871}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:3264, y:552}, p1:{x:3392, y:816}, b:0, f:0.98, d:0, t:7, s:0};
game.v15 = {p0:{x:2456, y:816}, p1:{x:2558, y:730}, b:0, f:0.98, d:0, t:7, s:0};
game.v16 = {p0:{x:2912, y:696}, p1:{x:2952, y:656}, b:0, f:0.98, d:0, t:7, s:0};
game.c1 = {p0:{x:248, y:800}, r:40, t:3, b:0, f:0.98};
game.c2 = {p0:{x:384, y:768}, r:48, t:3, b:0, f:0.98};
game.c3 = {p0:{x:496, y:688}, r:40, t:3, b:0, f:0.98};
game.c4 = {p0:{x:544, y:760}, r:48, t:3, b:0, f:0.98};
game.c5 = {p0:{x:464, y:752}, r:32, t:3, b:0, f:0.98};
game.c6 = {p0:{x:640, y:648}, r:46.65, t:3, b:0, f:0.98};
game.c7 = {p0:{x:616, y:720}, r:32, t:3, b:0, f:0.98};
game.c8 = {p0:{x:680, y:760}, r:40, t:3, b:0, f:0.98};
game.c9 = {p0:{x:2928, y:760}, r:68.35, t:3, b:0, f:0.98};
game.c10 = {p0:{x:2160, y:744}, r:48.66, t:0, b:0, f:0.98};
game.c11 = {p0:{x:2632, y:-320}, r:32.98, t:0, b:0, f:0.98};
game.c12 = {p0:{x:3032, y:600}, r:56, t:3, b:0, f:0.98};
game.c13 = {p0:{x:3056, y:720}, r:64, t:3, b:0, f:0.98};
game.c14 = {p0:{x:3232, y:528}, r:50.6, t:3, b:0, f:0.98};
game.c15 = {p0:{x:3288, y:752}, r:51.22, t:3, b:0, f:0.98};
game.c16 = {p0:{x:3192, y:656}, r:82.37, t:3, b:0, f:0.98};
game.c17 = {p0:{x:3128, y:784}, r:32, t:3, b:0, f:0.98};
game.c18 = {p0:{x:3472, y:760}, r:64, t:3, b:0, f:0.98};
game.c19 = {p0:{x:2976, y:672}, r:32, t:3, b:0, f:0.98};
game.a1 = {p0:{x:1024, y:688}, ang1:90, ang2:180, r:112, p1:{x:1136, y:688}, p2:{x:1024, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:1256, y:688}, ang1:180, ang2:270, r:112, p1:{x:1144, y:688}, p2:{x:1256, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:1528, y:688}, ang1:90, ang2:225, r:112, p1:{x:1607.2, y:767.2}, p2:{x:1528, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:3712, y:800}};
game.so1 = {type:1, p0:{x:2558, y:730}};
game.star1 = {p0:{x:552, y:616}};
game.star2 = {p0:{x:416, y:688}};
game.star3 = {p0:{x:1136, y:608}};
game.star4 = {p0:{x:1136, y:544}};
game.star5 = {p0:{x:1136, y:480}};
game.star6 = {p0:{x:1680, y:672}};
game.star7 = {p0:{x:1776, y:648}};
game.star8 = {p0:{x:1968, y:640}};
game.star9 = {p0:{x:2064, y:656}};
game.star10 = {p0:{x:1872, y:640}};
game.star11 = {p0:{x:2872, y:664}};
game.star12 = {p0:{x:3264, y:448}};
game.star13 = {p0:{x:3200, y:448}};
game.star14 = {p0:{x:3048, y:512}};
game.star15 = {p0:{x:2960, y:544}};
game.star16 = {p0:{x:3384, y:720}};
game.star17 = {p0:{x:3320, y:496}};
game.star18 = {p0:{x:3352, y:576}};
game.star19 = {p0:{x:3368, y:648}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 33
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 33
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 33
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 33
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 33
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 34
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 34
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 35
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:304, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:368, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:12, nrCps:1, nrWalls:30, nrCircles:4, nrArcs:5};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:536, y:776}, p1:{x:792, y:776}, b:0, f:0.98, d:0, t:1, s:0};
game.v3 = {p0:{x:568, y:768}, p1:{x:768, y:768}, b:0, f:0.98, d:1, t:0, s:0};
game.v4 = {p0:{x:560, y:768}, p1:{x:760, y:768}, b:0, f:0.98, d:1, t:0, s:0};
game.v5 = {p0:{x:1224, y:464}, p1:{x:1352, y:496}, b:0, f:0.98, d:0, t:0, s:0};
game.v6 = {p0:{x:1352, y:496}, p1:{x:1352, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:1216, y:800}, p1:{x:1216, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v8 = {p0:{x:1216, y:640}, p1:{x:1232, y:640}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:1232, y:640}, p1:{x:1232, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:720, y:32}, p1:{x:585.85, y:-116.34}, b:0, f:0.98, d:1, t:0, s:0};
game.v11 = {p0:{x:1480, y:688}, p1:{x:1480, y:336}, b:0, f:0.98, d:0, t:1, s:0};
game.v12 = {p0:{x:1344, y:544}, p1:{x:1296, y:488}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:1784, y:712}, p1:{x:2032, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v14 = {p0:{x:1720, y:800}, p1:{x:2024, y:584}, b:0, f:0.98, d:0, t:7, s:0};
game.v15 = {p0:{x:1936, y:592}, p1:{x:2032, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v16 = {p0:{x:1352, y:640}, p1:{x:1376, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v17 = {p0:{x:1456, y:512}, p1:{x:1480, y:512}, b:0, f:0.98, d:0, t:1, s:0};
game.v18 = {p0:{x:2128, y:536}, p1:{x:2304, y:320}, b:0, f:0.98, d:0, t:1, s:0};
game.v19 = {p0:{x:1960, y:656}, p1:{x:1936, y:592}, b:0, f:0.98, d:0, t:99, s:0};
game.v20 = {p0:{x:2848, y:464}, p1:{x:2848, y:288}, b:0, f:0.98, d:0, t:1, s:0};
game.v21 = {p0:{x:2848, y:288}, p1:{x:2864, y:288}, b:0, f:0.98, d:0, t:99, s:0};
game.v22 = {p0:{x:2864, y:464}, p1:{x:2848, y:488}, b:0, f:0.98, d:0, t:99, s:0};
game.v23 = {p0:{x:2896, y:694}, p1:{x:2896, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v24 = {p0:{x:2896, y:660}, p1:{x:3074, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v25 = {p0:{x:3074, y:660}, p1:{x:3074, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v26 = {p0:{x:2915, y:801}, p1:{x:2915, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v27 = {p0:{x:3054, y:694}, p1:{x:3054, y:801}, b:0, f:0.98, d:0, t:99, s:0};
game.v28 = {p0:{x:3096, y:792}, p1:{x:3296, y:791.9}, b:0, f:0.98, d:1, t:0, s:0};
game.v29 = {p0:{x:3104, y:792}, p1:{x:3304, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v30 = {p0:{x:2864, y:288}, p1:{x:2864, y:464}, b:0, f:0.98, d:0, t:1, s:0};
game.c1 = {p0:{x:1816, y:672}, r:48, t:1, b:0, f:0.98};
game.c2 = {p0:{x:1680, y:768}, r:48, t:3, b:0, f:0.98};
game.c3 = {p0:{x:1968, y:568}, r:48, t:1, b:0, f:0.98};
game.c4 = {p0:{x:2456, y:464}, r:88, t:1, b:0, f:0.98};
game.a1 = {p0:{x:464, y:704}, ang1:90, ang2:225, r:101.82, p1:{x:536, y:776}, p2:{x:464, y:805.82}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:864, y:704}, ang1:135, ang2:270, r:101.82, p1:{x:792, y:776}, p2:{x:864, y:805.82}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:1056, y:640}, ang1:90, ang2:180, r:160, p1:{x:1216, y:640}, p2:{x:1056, y:800}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:2696, y:464}, ang1:180, ang2:270, r:152, p1:{x:2544, y:464}, p2:{x:2696, y:616}, t:0, b:0, f:0.98};
game.a5 = {p0:{x:2696, y:464}, ang1:90, ang2:180, r:152, p1:{x:2848, y:464}, p2:{x:2696, y:616}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2520, y:800}};
game.so1 = {type:1, p0:{x:2896, y:660}};
game.star1 = {p0:{x:656, y:656}};
game.star2 = {p0:{x:2128, y:736}};
game.star3 = {p0:{x:2208, y:752}};
game.star4 = {p0:{x:2288, y:760}};
game.star5 = {p0:{x:2056, y:704}};
game.star6 = {p0:{x:2928, y:248}};
game.star7 = {p0:{x:2928, y:336}};
game.star8 = {p0:{x:2928, y:416}};
game.star9 = {p0:{x:2152, y:440}};
game.star10 = {p0:{x:2208, y:368}};
game.star11 = {p0:{x:1400, y:512}};
game.star12 = {p0:{x:1432, y:632}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 35
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 35
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 35
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 35
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 35
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 36
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 36
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 37
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:224, y:672}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:296, y:672}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:15, nrCps:1, nrWalls:28, nrCircles:11, nrArcs:3};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:472, y:728}, p1:{x:560, y:616}, b:0.7, f:10, d:0, t:6, s:0};
game.v3 = {p0:{x:560, y:616}, p1:{x:784, y:616}, b:0, f:0.98, d:0, t:1, s:0};
game.v4 = {p0:{x:176, y:704}, p1:{x:344, y:704}, b:0, f:0.98, d:0, t:1, s:0};
game.v5 = {p0:{x:8, y:472}, p1:{x:0, y:528}, b:0, f:0.98, d:0, t:1, s:0};
game.v6 = {p0:{x:40, y:432}, p1:{x:8, y:472}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:344, y:704}, p1:{x:344, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v8 = {p0:{x:352, y:792}, p1:{x:552, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v9 = {p0:{x:1528, y:752}, p1:{x:1624, y:712}, b:0, f:0.98, d:0, t:1, s:0};
game.v10 = {p0:{x:1704, y:704}, p1:{x:1784, y:680}, b:0, f:0.98, d:0, t:1, s:0};
game.v11 = {p0:{x:1864, y:664}, p1:{x:1936, y:624}, b:0, f:0.98, d:0, t:1, s:0};
game.v12 = {p0:{x:1984, y:694}, p1:{x:1984, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:1984, y:660}, p1:{x:2162, y:660}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:2003, y:801}, p1:{x:2003, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:2162, y:660}, p1:{x:2162, y:694}, b:0, f:0.98, d:0, t:99, s:0};
game.v16 = {p0:{x:2142, y:694}, p1:{x:2142, y:801}, b:0, f:0.98, d:0, t:99, s:0};
game.v17 = {p0:{x:360, y:792}, p1:{x:560, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v18 = {p0:{x:968, y:600}, p1:{x:968, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v19 = {p0:{x:2408, y:656}, p1:{x:2544, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v20 = {p0:{x:2480, y:800}, p1:{x:2672, y:664}, b:0, f:0.98, d:0, t:7, s:0};
game.v21 = {p0:{x:2656, y:688}, p1:{x:2848, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v22 = {p0:{x:2768, y:680}, p1:{x:2608, y:816}, b:0, f:0.98, d:0, t:7, s:0};
game.v23 = {p0:{x:3040, y:808}, p1:{x:3136, y:744}, b:0, f:0.98, d:0, t:1, s:1};
game.v24 = {p0:{x:3136, y:744}, p1:{x:3248, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v25 = {p0:{x:2808, y:-320}, p1:{x:2904, y:-320}, b:0, f:0.98, d:0, t:2, s:0};
game.v26 = {p0:{x:2904, y:-320}, p1:{x:2904, y:-232}, b:0, f:0.98, d:0, t:4, s:0};
game.v27 = {p0:{x:2904, y:-232}, p1:{x:2808, y:-232}, b:0, f:0.98, d:0, t:4, s:0};
game.v28 = {p0:{x:2808, y:-232}, p1:{x:2808, y:-320}, b:0, f:0.98, d:0, t:4, s:0};
game.c1 = {p0:{x:1040, y:440}, r:80, t:1, b:0, f:0.98};
game.c2 = {p0:{x:1200, y:544}, r:32, t:1, b:0, f:0.98};
game.c3 = {p0:{x:1312, y:656}, r:32, t:1, b:0, f:0.98};
game.c4 = {p0:{x:1432, y:768}, r:32, t:1, b:0, f:0.98};
game.c5 = {p0:{x:2232, y:640}, r:72, t:3, b:0, f:0.98};
game.c6 = {p0:{x:2320, y:744}, r:64, t:3, b:0, f:0.98};
game.c7 = {p0:{x:2360, y:632}, r:56, t:3, b:0, f:0.98};
game.c8 = {p0:{x:2304, y:528}, r:64, t:3, b:0, f:0.98};
game.c9 = {p0:{x:2864, y:752}, r:50.6, t:3, b:0, f:0.98};
game.c10 = {p0:{x:2704, y:640}, r:64.5, t:3, b:0, f:0.98};
game.c11 = {p0:{x:3296, y:576}, r:32, t:1, b:0, f:0.98};
game.a1 = {p0:{x:176, y:528}, ang1:180, ang2:270, r:176, p1:{x:0, y:528}, p2:{x:176, y:704}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:784, y:440}, ang1:90, ang2:180, r:176, p1:{x:960, y:440}, p2:{x:784, y:616}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:1152, y:624}, ang1:180, ang2:270, r:184, p1:{x:968, y:624}, p2:{x:1152, y:808}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:3568, y:800}};
game.so1 = {type:1, p0:{x:1984, y:660}};
game.star1 = {p0:{x:248, y:368}};
game.star2 = {p0:{x:672, y:576}};
game.star3 = {p0:{x:1040, y:312}};
game.star4 = {p0:{x:864, y:528}};
game.star5 = {p0:{x:1200, y:464}};
game.star6 = {p0:{x:1312, y:576}};
game.star7 = {p0:{x:1432, y:688}};
game.star8 = {p0:{x:992, y:544}};
game.star9 = {p0:{x:2312, y:416}};
game.star10 = {p0:{x:2704, y:536}};
game.star11 = {p0:{x:2864, y:656}};
game.star12 = {p0:{x:3136, y:688}};
game.star13 = {p0:{x:3312, y:760}};
game.star14 = {p0:{x:160, y:384}};
game.star15 = {p0:{x:88, y:432}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 37
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 37
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 37
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 37
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 37
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 38
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 38
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 39
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:80, y:784}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:144, y:784}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:10, nrCps:1, nrWalls:13, nrCircles:11, nrArcs:2};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:1240, y:792}, p1:{x:1440, y:792.01}, b:0, f:0.98, d:1, t:0, s:0};
game.v3 = {p0:{x:504, y:680}, p1:{x:816, y:576}, b:0, f:0.98, d:0, t:7, s:0};
game.v4 = {p0:{x:1048, y:768}, p1:{x:1032, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v5 = {p0:{x:2240, y:801}, p1:{x:2260, y:783}, b:0, f:0.98, d:0, t:99, s:0};
game.v6 = {p0:{x:1800, y:888}, p1:{x:1872, y:784}, b:0, f:0.98, d:0, t:7, s:0};
game.v7 = {p0:{x:1872, y:784}, p1:{x:1864, y:832}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:3088, y:792}, p1:{x:3288, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v9 = {p0:{x:2840, y:824}, p1:{x:2832, y:784}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:2624, y:792}, p1:{x:2824, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v11 = {p0:{x:3296, y:792}, p1:{x:3240, y:544}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:16, y:528}, p1:{x:0, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:2295, y:784}, p1:{x:2304, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:288, y:768}, r:48, t:0, b:0, f:0.98};
game.c2 = {p0:{x:424, y:784}, r:32, t:0, b:0, f:0.98};
game.c3 = {p0:{x:504, y:728}, r:48.66, t:0, b:0, f:0.98};
game.c4 = {p0:{x:776, y:624}, r:32, t:0, b:0, f:0.98};
game.c5 = {p0:{x:1192, y:768}, r:46.65, t:3, b:0, f:0.98};
game.c6 = {p0:{x:1504, y:752}, r:72, t:3, b:0, f:0.98};
game.c7 = {p0:{x:2280, y:784}, r:15, t:99, b:0, f:0.98};
game.c8 = {p0:{x:2144, y:664}, r:48, t:0, b:0, f:0.98};
game.c9 = {p0:{x:2568, y:760}, r:56, t:3, b:0, f:0.98};
game.c10 = {p0:{x:1656, y:792}, r:32, t:0, b:0, f:0.98};
game.c11 = {p0:{x:2736, y:736}, r:40, t:0, b:0, f:0.98};
game.a1 = {p0:{x:968, y:680}, ang1:90, ang2:225, r:120, p1:{x:1052.85, y:764.85}, p2:{x:968, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:2880, y:728}, ang1:135, ang2:270, r:72, p1:{x:2829.09, y:778.91}, p2:{x:2880, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:1984, y:800}};
game.so1 = {type:4, p0:{x:2240, y:768}};
game.star1 = {p0:{x:376, y:648}};
game.star2 = {p0:{x:1216, y:624}};
game.star3 = {p0:{x:1408, y:648}};
game.star4 = {p0:{x:1312, y:632}};
game.star5 = {p0:{x:1128, y:624}};
game.star6 = {p0:{x:1600, y:768}};
game.star7 = {p0:{x:1912, y:696}};
game.star8 = {p0:{x:1952, y:648}};
game.star9 = {p0:{x:2912, y:776}};
game.star10 = {p0:{x:2952, y:776}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 39
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 39
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 39
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 39
onClipEvent (load) {
this.swapDepths(9999);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 39
onClipEvent (load) {
this.swapDepths(9998);
}
Frame 40
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 40
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 41
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(1);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:40, y:768}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:112, y:768}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:11, nrCps:1, nrWalls:38, nrCircles:9, nrArcs:2};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:160, y:808}, p1:{x:320, y:768}, b:0, f:0.98, d:0, t:7, s:0};
game.v3 = {p0:{x:400, y:744}, p1:{x:552, y:704}, b:0, f:0.98, d:0, t:7, s:0};
game.v4 = {p0:{x:632, y:672}, p1:{x:800, y:632}, b:0, f:0.98, d:0, t:7, s:0};
game.v5 = {p0:{x:904, y:632}, p1:{x:1008, y:552}, b:0, f:0.98, d:0, t:7, s:0};
game.v6 = {p0:{x:944, y:640}, p1:{x:904, y:632}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:504, y:792}, p1:{x:400, y:744}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:768, y:720}, p1:{x:632, y:672}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:968, y:672}, p1:{x:944, y:640}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:272, y:792}, p1:{x:472, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v11 = {p0:{x:472, y:792}, p1:{x:671.99, y:794}, b:0, f:0.98, d:1, t:0, s:0};
game.v12 = {p0:{x:672, y:792}, p1:{x:872, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v13 = {p0:{x:872, y:792}, p1:{x:1072, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v14 = {p0:{x:864, y:-320}, p1:{x:912, y:-320}, b:0, f:0.98, d:0, t:0, s:1};
game.v15 = {p0:{x:1568, y:520}, p1:{x:1568, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v16 = {p0:{x:1694, y:586}, p1:{x:2077, y:586}, b:0, f:0.98, d:0, t:99, s:0};
game.v17 = {p0:{x:2077, y:586}, p1:{x:2077, y:605}, b:0, f:0.98, d:0, t:99, s:0};
game.v18 = {p0:{x:1694, y:732}, p1:{x:1694, y:586}, b:0, f:0.98, d:0, t:99, s:0};
game.v19 = {p0:{x:1757, y:791}, p1:{x:1694, y:732}, b:0, f:0.98, d:0, t:99, s:0};
game.v20 = {p0:{x:2077, y:605}, p1:{x:2128, y:620}, b:0, f:0.98, d:0, t:99, s:0};
game.v21 = {p0:{x:2128, y:620}, p1:{x:2198, y:620}, b:0, f:0.98, d:0, t:99, s:0};
game.v22 = {p0:{x:2198, y:620}, p1:{x:2221, y:768}, b:0, f:0.98, d:0, t:99, s:0};
game.v23 = {p0:{x:2520, y:800}, p1:{x:2520, y:576}, b:0, f:0.98, d:0, t:1, s:0};
game.v24 = {p0:{x:2520, y:576}, p1:{x:2544, y:544}, b:0, f:0.98, d:0, t:1, s:0};
game.v25 = {p0:{x:2560, y:560}, p1:{x:2536, y:592}, b:0, f:0.98, d:0, t:1, s:0};
game.v26 = {p0:{x:2544, y:544}, p1:{x:2560, y:560}, b:0, f:0.98, d:0, t:99, s:0};
game.v27 = {p0:{x:2536, y:592}, p1:{x:2536, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v28 = {p0:{x:2712, y:656}, p1:{x:2976, y:656}, b:0, f:0.98, d:0, t:1, s:0};
game.v29 = {p0:{x:3488, y:800}, p1:{x:3488, y:656}, b:0, f:0.98, d:0, t:1, s:0};
game.v30 = {p0:{x:2872, y:656}, p1:{x:2896, y:608}, b:0, f:0.98, d:0, t:7, s:0};
game.v31 = {p0:{x:2992, y:616}, p1:{x:3016, y:656}, b:0, f:0.98, d:0, t:7, s:0};
game.v32 = {p0:{x:2976, y:656}, p1:{x:3240, y:656}, b:0, f:0.98, d:0, t:1, s:0};
game.v33 = {p0:{x:3240, y:656}, p1:{x:3488, y:656}, b:0, f:0.98, d:0, t:0, s:0};
game.v34 = {p0:{x:3488, y:656}, p1:{x:3504, y:656}, b:0, f:0.98, d:0, t:99, s:0};
game.v35 = {p0:{x:3504, y:656}, p1:{x:3504, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v36 = {p0:{x:3048, y:656}, p1:{x:3080, y:496}, b:0, f:0.98, d:0, t:7, s:0};
game.v37 = {p0:{x:3112, y:496}, p1:{x:3144, y:656}, b:0, f:0.98, d:0, t:7, s:0};
game.v38 = {p0:{x:1192, y:800}, p1:{x:1232, y:632}, b:0, f:0.98, d:0, t:7, s:0};
game.c1 = {p0:{x:1280, y:592}, r:80, t:1, b:0, f:0.98};
game.c2 = {p0:{x:1392, y:664}, r:56, t:3, b:0, f:0.98};
game.c3 = {p0:{x:1472, y:744}, r:56, t:3, b:0, f:0.98};
game.c4 = {p0:{x:1480, y:656}, r:32, t:3, b:0, f:0.98};
game.c5 = {p0:{x:1512, y:600}, r:32, t:3, b:0, f:0.98};
game.c6 = {p0:{x:1520, y:520}, r:48, t:3, b:0, f:0.98};
game.c7 = {p0:{x:1536, y:688}, r:32, t:3, b:0, f:0.98};
game.c8 = {p0:{x:2944, y:584}, r:64, t:1, b:0, f:0.98};
game.c9 = {p0:{x:3096, y:472}, r:40, t:1, b:0, f:0.98};
game.a1 = {p0:{x:2400, y:680}, ang1:90, ang2:180, r:120, p1:{x:2520, y:680}, p2:{x:2400, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:2656, y:680}, ang1:180, ang2:270, r:120, p1:{x:2536, y:680}, p2:{x:2656, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:3688, y:800}};
game.so1 = {type:2, p0:{x:1694, y:586}};
game.star1 = {p0:{x:2792, y:744}};
game.star2 = {p0:{x:3048, y:744}};
game.star3 = {p0:{x:3296, y:744}};
game.star4 = {p0:{x:2944, y:472}};
game.star5 = {p0:{x:3088, y:384}};
game.star6 = {p0:{x:2536, y:496}};
game.star7 = {p0:{x:1888, y:520}};
game.star8 = {p0:{x:1432, y:576}};
game.star9 = {p0:{x:344, y:712}};
game.star10 = {p0:{x:568, y:640}};
game.star11 = {p0:{x:848, y:568}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 41
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 41
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 41
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 41
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 41
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 42
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 42
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 43
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:288, y:768}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:352, y:768}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:1, nrStars:14, nrCps:1, nrWalls:30, nrCircles:7, nrArcs:7};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:696, y:800}, p1:{x:696, y:608}, b:0, f:0.98, d:0, t:7, s:0};
game.v3 = {p0:{x:696, y:608}, p1:{x:680, y:568}, b:0, f:0.98, d:0, t:7, s:0};
game.v4 = {p0:{x:800, y:576}, p1:{x:616, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v5 = {p0:{x:2416, y:704}, p1:{x:2544, y:704}, b:0, f:0.98, d:0, t:7, s:0};
game.v6 = {p0:{x:680, y:568}, p1:{x:680, y:536}, b:0, f:0.98, d:0, t:7, s:0};
game.v7 = {p0:{x:400, y:-320}, p1:{x:1152, y:-320}, b:0, f:0.98, d:0, t:0, s:0};
game.v8 = {p0:{x:352, y:528}, p1:{x:512, y:576}, b:0.7, f:10, d:0, t:6, s:0};
game.v9 = {p0:{x:1040, y:742}, p1:{x:1040, y:596}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:1040, y:596}, p1:{x:1423, y:596}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:1423, y:596}, p1:{x:1423, y:615}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:1423, y:615}, p1:{x:1474, y:630}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:1474, y:630}, p1:{x:1544, y:630}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:1544, y:630}, p1:{x:1567, y:778}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:1103, y:801}, p1:{x:1040, y:742}, b:0, f:0.98, d:0, t:99, s:0};
game.v16 = {p0:{x:1672, y:792}, p1:{x:1872, y:791.81}, b:0, f:0.98, d:1, t:0, s:0};
game.v17 = {p0:{x:1872, y:792}, p1:{x:2072, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v18 = {p0:{x:2592, y:568}, p1:{x:2064, y:568}, b:0, f:0.98, d:0, t:1, s:0};
game.v19 = {p0:{x:2064, y:752}, p1:{x:2368, y:752}, b:0, f:0.98, d:0, t:7, s:0};
game.v20 = {p0:{x:2672, y:728}, p1:{x:2752, y:640}, b:0.7, f:10, d:0, t:6, s:0};
game.v21 = {p0:{x:2752, y:640}, p1:{x:2992, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v22 = {p0:{x:2544, y:704}, p1:{x:2208, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v23 = {p0:{x:2416, y:704}, p1:{x:2560, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v24 = {p0:{x:2560, y:792}, p1:{x:2760, y:792}, b:0, f:0.98, d:1, t:0, s:0};
game.v25 = {p0:{x:2992, y:640}, p1:{x:3232, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v26 = {p0:{x:3232, y:640}, p1:{x:3488, y:640}, b:0, f:0.98, d:0, t:1, s:0};
game.v27 = {p0:{x:2064, y:568}, p1:{x:2064, y:552}, b:0, f:0.98, d:0, t:99, s:0};
game.v28 = {p0:{x:2064, y:552}, p1:{x:2592, y:552}, b:0, f:0.98, d:0, t:1, s:0};
game.v29 = {p0:{x:2592, y:552}, p1:{x:2592, y:568}, b:0, f:0.98, d:0, t:99, s:0};
game.v30 = {p0:{x:3488, y:640}, p1:{x:3608, y:832}, b:0, f:0.98, d:0, t:1, s:0};
game.c1 = {p0:{x:744, y:536}, r:64, t:3, b:0, f:0.98};
game.c2 = {p0:{x:912, y:464}, r:32, t:1, b:0, f:0.98};
game.c3 = {p0:{x:1664, y:768}, r:48, t:3, b:0, f:0.98};
game.c4 = {p0:{x:1808, y:784}, r:32, t:0, b:0, f:0.98};
game.c5 = {p0:{x:1936, y:784}, r:32, t:0, b:0, f:0.98};
game.c6 = {p0:{x:2064, y:784}, r:32, t:0, b:0, f:0.98};
game.c7 = {p0:{x:3832, y:752}, r:48, t:0, b:0, f:0.98};
game.a1 = {p0:{x:504, y:608}, ang1:90, ang2:180, r:192, p1:{x:696, y:608}, p2:{x:504, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:2368, y:704}, ang1:90, ang2:180, r:48, p1:{x:2416, y:704}, p2:{x:2368, y:752}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:2816, y:520}, ang1:90, ang2:225, r:124.45, p1:{x:2904, y:608}, p2:{x:2816, y:644.45}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:2992, y:520}, ang1:135, ang2:270, r:124.45, p1:{x:2904, y:608}, p2:{x:2992, y:644.45}, t:0, b:0, f:0.98};
game.a5 = {p0:{x:2416, y:456}, ang1:90, ang2:225, r:101.82, p1:{x:2488, y:528}, p2:{x:2416, y:557.82}, t:0, b:0, f:0.98};
game.a6 = {p0:{x:2560, y:456}, ang1:135, ang2:270, r:101.82, p1:{x:2488, y:528}, p2:{x:2560, y:557.82}, t:0, b:0, f:0.98};
game.a7 = {p0:{x:2416, y:456}, ang1:90, ang2:225, r:101.82, p1:{x:2488, y:528}, p2:{x:2416, y:557.82}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:2144, y:552}};
game.so1 = {type:2, p0:{x:1040, y:596}};
game.star1 = {p0:{x:416, y:496}};
game.star2 = {p0:{x:480, y:520}};
game.star3 = {p0:{x:744, y:440}};
game.star4 = {p0:{x:912, y:392}};
game.star5 = {p0:{x:1808, y:704}};
game.star6 = {p0:{x:1936, y:704}};
game.star7 = {p0:{x:2064, y:704}};
game.star8 = {p0:{x:2800, y:600}};
game.star9 = {p0:{x:3176, y:592}};
game.star10 = {p0:{x:3248, y:592}};
game.star11 = {p0:{x:3312, y:592}};
game.star12 = {p0:{x:2384, y:504}};
game.star13 = {p0:{x:2440, y:496}};
game.star14 = {p0:{x:2488, y:472}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 43
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 43
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 43
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 43
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 43
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 44
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 44
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 45
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(2);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:360, y:776}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:432, y:776}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:14, nrCps:1, nrWalls:14, nrCircles:11, nrArcs:4};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:712, y:768}, p1:{x:848, y:632}, b:0.7, f:10, d:0, t:6, s:0};
game.v3 = {p0:{x:1584, y:720}, p1:{x:1640, y:656}, b:0, f:0.98, d:0, t:7, s:0};
game.v4 = {p0:{x:1800, y:616}, p1:{x:1856, y:800}, b:0, f:0.98, d:0, t:7, s:0};
game.v5 = {p0:{x:1664, y:808}, p1:{x:1800, y:624}, b:0, f:0.98, d:0, t:7, s:0};
game.v6 = {p0:{x:1888, y:616}, p1:{x:1936, y:616}, b:0, f:0.98, d:0, t:1, s:0};
game.v7 = {p0:{x:2008, y:616}, p1:{x:2160, y:616}, b:0, f:0.98, d:0, t:1, s:0};
game.v8 = {p0:{x:2416, y:760}, p1:{x:2640, y:536}, b:0, f:0.98, d:0, t:1, s:1};
game.v9 = {p0:{x:2640, y:536}, p1:{x:2664, y:488}, b:0, f:0.98, d:0, t:1, s:0};
game.v10 = {p0:{x:2664, y:488}, p1:{x:2688, y:488}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:2688, y:488}, p1:{x:2688, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.v12 = {p0:{x:3312, y:488}, p1:{x:3552, y:488}, b:0, f:0.98, d:0, t:1, s:0};
game.v13 = {p0:{x:3312, y:800}, p1:{x:3312, y:488}, b:0, f:0.98, d:0, t:1, s:0};
game.v14 = {p0:{x:3552, y:488}, p1:{x:3552, y:800}, b:0, f:0.98, d:0, t:1, s:0};
game.c1 = {p0:{x:1008, y:600}, r:48, t:1, b:0, f:0.98};
game.c2 = {p0:{x:1168, y:640}, r:32.98, t:1, b:0, f:0.98};
game.c3 = {p0:{x:1344, y:600}, r:64, t:3, b:0, f:0.98};
game.c4 = {p0:{x:1608, y:624}, r:40, t:3, b:0, f:0.98};
game.c5 = {p0:{x:1752, y:600}, r:48, t:3, b:0, f:0.98};
game.c6 = {p0:{x:1296, y:736}, r:80, t:3, b:0, f:0.98};
game.c7 = {p0:{x:1392, y:680}, r:32.98, t:3, b:0, f:0.98};
game.c8 = {p0:{x:1456, y:752}, r:64, t:3, b:0, f:0.98};
game.c9 = {p0:{x:1600, y:744}, r:80, t:3, b:0, f:0.98};
game.c10 = {p0:{x:1896, y:768}, r:48, t:3, b:0, f:0.98};
game.c11 = {p0:{x:1776, y:760}, r:60.93, t:3, b:0, f:0.98};
game.a1 = {p0:{x:632, y:688}, ang1:90, ang2:225, r:112, p1:{x:711.2, y:767.2}, p2:{x:632, y:800}, t:0, b:0, f:0.98};
game.a2 = {p0:{x:2320, y:664}, ang1:90, ang2:225, r:136, p1:{x:2416.17, y:760.17}, p2:{x:2320, y:800}, t:0, b:0, f:0.98};
game.a3 = {p0:{x:3000, y:488}, ang1:180, ang2:270, r:312, p1:{x:2688, y:488}, p2:{x:3000, y:800}, t:0, b:0, f:0.98};
game.a4 = {p0:{x:3000, y:488}, ang1:90, ang2:180, r:312, p1:{x:3312, y:488}, p2:{x:3000, y:800}, t:0, b:0, f:0.98};
game.cp1 = {p0:{x:3440, y:488}};
game.star1 = {p0:{x:544, y:776}};
game.star2 = {p0:{x:640, y:760}};
game.star3 = {p0:{x:720, y:712}};
game.star4 = {p0:{x:1168, y:568}};
game.star5 = {p0:{x:1600, y:544}};
game.star6 = {p0:{x:1344, y:488}};
game.star7 = {p0:{x:1904, y:560}};
game.star8 = {p0:{x:2088, y:560}};
game.star9 = {p0:{x:2656, y:384}};
game.star10 = {p0:{x:2592, y:480}};
game.star11 = {p0:{x:2528, y:560}};
game.star12 = {p0:{x:2448, y:624}};
game.star13 = {p0:{x:2344, y:704}};
game.star14 = {p0:{x:2224, y:720}};
showText = "";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 45
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 45
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 45
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 45
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 45
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 46
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 46
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 47
stop();
d = 1;
_root.attachMovie("gameclip", "gameclip", d);
d++;
sky.gotoAndStop(3);
game = {stageW:600, stageH:450, maxV:17, ac:0.6, gravity:0.6, gas:1.2, motor_len:73};
game.ob = {clip:_root.ob_mc, b:0.05, airf:0.98, f:0.99, r:15, p0:{x:72, y:776}, p1:{}};
game.ob.vx = 0;
game.ob.vy = 0;
game.ob2 = {clip:_root.ob_mc2, b:0.1, airf:0.98, f:0.99, r:15, p0:{x:144, y:776}, p1:{}};
game.ob2.vx = 0;
game.ob2.vy = 0;
level = {nrSos:0, nrStars:7, nrCps:1, nrWalls:18, nrCircles:1, nrArcs:0};
game.v1 = {p0:{x:-600, y:800}, p1:{x:4600, y:800}, b:0, f:0.98, d:0, t:2, s:0};
game.v2 = {p0:{x:208, y:800}, p1:{x:328, y:760}, b:0, f:0.98, d:0, t:99, s:0};
game.v3 = {p0:{x:328, y:760}, p1:{x:400, y:704}, b:0, f:0.98, d:0, t:99, s:0};
game.v4 = {p0:{x:400, y:704}, p1:{x:416, y:608}, b:0, f:0.98, d:0, t:99, s:0};
game.v5 = {p0:{x:544, y:608}, p1:{x:800, y:720}, b:0, f:0.98, d:0, t:99, s:0};
game.v6 = {p0:{x:800, y:720}, p1:{x:808, y:816}, b:0, f:0.98, d:0, t:99, s:0};
game.v7 = {p0:{x:880, y:800}, p1:{x:912, y:704}, b:0, f:0.98, d:0, t:99, s:0};
game.v8 = {p0:{x:912, y:704}, p1:{x:1080, y:704}, b:0, f:0.98, d:0, t:99, s:0};
game.v9 = {p0:{x:1080, y:704}, p1:{x:1104, y:672}, b:0, f:0.98, d:0, t:99, s:0};
game.v10 = {p0:{x:1104, y:672}, p1:{x:1104, y:608}, b:0, f:0.98, d:0, t:99, s:0};
game.v11 = {p0:{x:1104, y:608}, p1:{x:1232, y:560}, b:0, f:0.98, d:0, t:99, s:0};
game.v12 = {p0:{x:1232, y:560}, p1:{x:1184, y:816}, b:0, f:0.98, d:0, t:99, s:0};
game.v13 = {p0:{x:1360, y:656}, p1:{x:1416, y:432}, b:0, f:0.98, d:0, t:99, s:0};
game.v14 = {p0:{x:1440, y:800}, p1:{x:1472, y:760}, b:0, f:0.98, d:0, t:99, s:0};
game.v15 = {p0:{x:1568, y:688}, p1:{x:1800, y:688}, b:0, f:0.98, d:0, t:99, s:0};
game.v16 = {p0:{x:1472, y:760}, p1:{x:1472, y:800}, b:0, f:0.98, d:0, t:99, s:0};
game.v17 = {p0:{x:1568, y:800}, p1:{x:1568, y:688}, b:0, f:0.98, d:0, t:99, s:0};
game.v18 = {p0:{x:1800, y:688}, p1:{x:1832, y:336}, b:0, f:0.98, d:0, t:99, s:0};
game.c1 = {p0:{x:480, y:608}, r:64, t:99, b:0, f:0.98};
game.cp1 = {p0:{x:1720, y:688}};
game.star1 = {p0:{x:1280, y:744}};
game.star2 = {p0:{x:480, y:488}};
game.star3 = {p0:{x:992, y:648}};
game.star4 = {p0:{x:664, y:608}};
game.star5 = {p0:{x:272, y:720}};
game.star6 = {p0:{x:1296, y:600}};
game.star7 = {p0:{x:1512, y:640}};
showText = " Dat heb je niet slecht gedaan, alle levels voltooid! Speciaal voor jou een bonuslevel. Kijk maar eens wat je ervan bakt...";
if (showText) {
showI._visible = true;
} else {
showI._visible = false;
}
acice2 = 1;
acice1 = 1;
ice1 = 0;
ice2 = 0;
hh = 30;
acc1 = 0;
acc2 = 0;
accc1 = false;
accc2 = false;
pc11 = {x:36, y:60};
pc12 = {x:36, y:76};
pc13 = {x:60, y:72};
pc1 = pc12;
pc2 = {x:35, y:25};
p2len = Math.sqrt((pc1.x * pc1.x) + (pc1.y * pc1.y));
add_g_left = 0;
add_g_right = 0;
mc_racer.r.stop();
create_level();
leftborder = 275 - game.ob.p0.x;
topborder = 315 - game.ob.p0.y;
gameclip._x = gameclip._x + (275 - game.ob.p0.x);
gameclip._y = gameclip._y + (315 - game.ob.p0.y);
i = 1;
while (i <= level.nrWalls) {
CalcVector(game["v" + i], true);
i++;
}
CalcVector(game.ob, false);
CalcVector(game.ob2, false);
Instance of Symbol 66 MovieClip [squaret1] in Frame 47
onClipEvent (enterFrame) {
_root.step();
}
Instance of Symbol 92 MovieClip [healthbar] "hbar" in Frame 47
onClipEvent (load) {
this.swapDepths(9997);
}
Instance of Symbol 90 MovieClip [speedbar] "speedbar" in Frame 47
onClipEvent (load) {
this.swapDepths(9996);
}
Instance of Symbol 96 MovieClip [clock] "cbar" in Frame 47
onClipEvent (load) {
this.swapDepths(9998);
}
Instance of Symbol 100 MovieClip [message] "showI" in Frame 47
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 48
resetBars();
gotoAndStop(frame);
sndBike.stop();
nextLvl.start(0, 999);
gameclip.removeMovieClip();
if (ttt == 1) {
if (levelNrTotal <= ((frame - 6) / 2)) {
levelNrTotal = levelNrTotal + 1;
so.data.levelNrTotal = levelNrTotal;
}
ctime = Math.round(time - ((time / 100) * bonusp));
bonusp = bonusp + "%";
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeTotal = timeVar;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
sendScore(id, nn, timeStr);
} else {
nn = so.data.nn;
id = (frame - 6) / 2;
timeStr = _root.timeTotal;
getTop5(id);
}
Instance of Symbol 64 MovieClip [circlet1] "shiftGo" in Frame 48
onClipEvent (enterFrame) {
if (Key.isDown(16)) {
_root.ttt = 1;
_root.frame++;
_root.sndBike.stop();
_root.sndBike.start(0, 999);
_root.gotoAndStop(_root.frame);
}
}
Frame 49
gotoAndStop (3);
Frame 50
sStatus.text = "Click here if you want to challenge a friend.";
nextLvl.stop();
sndChal.setVolume(35);
sndChal.start(0, 999);
Frame 51
_root.prevFrame();
Frame 52
nextFrame();
Frame 53
sStatus.text = "";
iName.setFocus();
i = 0;
while (i <= 21) {
name = "pick" + i;
_root[name].removeMovieClip();
i++;
}
Frame 54
_root.prevFrame();
Frame 55
nextFrame();
Frame 56
sStatus.text = "";
iName.setFocus();
i = 0;
while (i <= 21) {
name = "pick" + i;
_root[name].removeMovieClip();
i++;
}
Frame 57
Instance of Symbol 74 MovieClip [ground] in Frame 57
onClipEvent (load) {
iii = 30;
}
onClipEvent (enterFrame) {
iii--;
if (iii <= 0) {
gotoAndStop (3);
}
}
Symbol 13 Button
on (release) {
_root.frame = false;
i = 1;
while (i <= 21) {
_root["pick" + i].gotoAndStop(1);
i++;
}
gotoAndStop (2);
_root.getTop5(levelNr);
}
Symbol 20 MovieClip [pickscore] Frame 1
stop();
Symbol 45 Button
on (release) {
getURL ("http://www.gameitnow.com", "_blank");
}
Symbol 49 MovieClip Frame 41
_parent.gotoAndStop(1);
Symbol 51 MovieClip Frame 41
_parent.gotoAndStop(1);
Symbol 53 MovieClip Frame 41
_parent.gotoAndStop(1);
Symbol 54 MovieClip Frame 1
stop();
Symbol 96 MovieClip [clock] Frame 1
time = 0;
_root.time = 0;
onEnterFrame = function () {
time++;
_root.time++;
ctime = time;
m = Math.floor((ctime / 20) / 60);
if (m < 10) {
m = "0" + m;
}
ctime = ctime - Math.floor((m * 20) * 60);
s = Math.floor(ctime / 20);
if (s < 10) {
s = "0" + s;
}
ctime = ctime - Math.floor(s * 20);
ms = ctime * 5;
if (ms < 10) {
ms = "0" + ms;
}
ms = ms + "0";
timeVar = (((m + ":") + s) + ":") + ms;
_root.timeVar = timeVar;
};
Symbol 100 MovieClip [message] Frame 1
i = 200;
_y = (_y - 20);
if (_visible == false) {
v = abort;
} else {
v = false;
}
_visible = false;
onEnterFrame = function () {
_visible = v;
if (v == false) {
v = true;
}
i--;
if (i < 25) {
_alpha = (i * 4);
}
if ((i <= 0) || (_root.showed)) {
this.removeMovieClip();
}
};
Symbol 105 Button
on (release) {
_root.frame = 5 + (levelNr * 2);
i = 1;
while (i <= 21) {
_root["pick" + i].gotoAndStop(1);
i++;
}
gotoAndStop (2);
_root.getTop5(levelNr);
}
Symbol 109 MovieClip [picklevel] Frame 1
stop();
Symbol 117 MovieClip [star] Frame 60
gotoAndPlay (1);
Symbol 117 MovieClip [star] Frame 61
play();
Symbol 117 MovieClip [star] Frame 67
stop();
Symbol 144 MovieClip Frame 24
stop();
Symbol 147 Button
on (release) {
getURL ("http://www.gameitnow.com", "_blank");
}
Symbol 154 Button
on (release) {
if (frame) {
i = 1;
while (i <= 21) {
name = "pick" + i;
_root[name].removeMovieClip();
i++;
}
_root.sndMenu.stop();
_root.gotoAndStop(frame);
}
}
Symbol 169 Button
on (release) {
gotoAndStop (53);
}
Symbol 176 Button
on (release) {
getURL ("http://www.gameitnow.com", "_blank");
}
Symbol 180 Button
on (release) {
gotoAndStop (56);
}
Symbol 187 Button
on (release) {
sndBike.stop();
sndBike.start(0, 999);
_root.gotoAndStop(frame);
}
Symbol 190 Button
on (release) {
gotoAndStop (3);
}
Symbol 207 Button
on (release) {
ttt = 1;
frame++;
sndBike.stop();
sndBike.start(0, 999);
_root.shiftGo.removeMovieClip();
_root.showed = 0;
_root.gotoAndStop(frame);
}
Symbol 208 Button
on (release) {
ttt = 1;
frame++;
_root.showed = 0;
gotoAndStop (3);
}
Symbol 213 MovieClip Frame 1
bonusp = bonusp + "%";
Symbol 214 Button
on (release) {
ttt = 1;
frame--;
sndBike.stop();
sndBike.start(0, 999);
_root.shiftGo.removeMovieClip();
_root.showed = 1;
_root.gotoAndStop(frame);
}
Symbol 216 Button
on (release) {
ttt = 0;
_root.shiftGo.removeMovieClip();
gotoAndStop (50);
}
Symbol 218 Button
on (release) {
if ((((((((((_root.toEmail.text.length < 6) || (_root.toEmail.text.indexOf(",") >= 0)) || (_root.toEmail.text.indexOf(";") >= 0)) || (_root.toEmail.text.indexOf(":") >= 0)) || (_root.toEmail.text.indexOf("/") >= 0)) || (_root.toEmail.text.indexOf(" ") >= 0)) || (_root.toEmail.text.indexOf("@") <= 0)) || (_root.toEmail.text.indexOf("@") != _root.toEmail.text.lastIndexOf("@"))) || (_root.toEmail.text.lastIndexOf(".") < _root.toEmail.text.indexOf("@"))) || ((_root.toEmail.text.lastIndexOf(".") + 3) > _root.toEmail.text.length)) {
sStatus.text = "Incorrect emailadress.";
} else if ((((((((((_root.fromEmail.text.length < 6) || (_root.fromEmail.text.indexOf(",") >= 0)) || (_root.fromEmail.text.indexOf(";") >= 0)) || (_root.fromEmail.text.indexOf(":") >= 0)) || (_root.fromEmail.text.indexOf("/") >= 0)) || (_root.fromEmail.text.indexOf(" ") >= 0)) || (_root.fromEmail.text.indexOf("@") <= 0)) || (_root.fromEmail.text.indexOf("@") != _root.fromEmail.text.lastIndexOf("@"))) || (_root.fromEmail.text.lastIndexOf(".") < _root.fromEmail.text.indexOf("@"))) || ((_root.fromEmail.text.lastIndexOf(".") + 3) > _root.fromEmail.text.length)) {
sStatus.text = "Incorrect emailadress.";
} else if (((to.text != "") && (from.text != "")) && (toEmail.text != "")) {
level = _root.id;
time = _root.timeStr;
getURL ((((((((((("sendEmailChallenge2.php?toEmail=" + _root.toEmail.text) + "&to=") + _root.to.text) + "&from=") + _root.from.text) + "&time=") + _root.time) + "&level=") + _root.level) + "&fromEmail=") + _root.fromEmail.text, "_blank");
gotoAndStop(frame);
} else {
sStatus.text = "All fields are required.";
}
}
Symbol 219 Button
on (release) {
frame++;
gotoAndStop (3);
}
Symbol 222 Button
on (release) {
_root.gotoAndStop(frame);
}
Symbol 233 Button
on (release) {
if (_root.iName.text != "") {
if (_root.iName.text.length < 30) {
if (_root.iName.text.length > 3) {
_root.nn = iName.text;
_root.so.data.nn = nn;
gotoAndStop (3);
} else {
_root.sStatus.text = "Your name is too short";
}
} else {
_root.sStatus.text = "Your name is too long.";
}
} else {
_root.sStatus.text = "Please enter a name.";
}
}
Symbol 240 Button
on (release) {
if ((((((((((_root.toEmail.text.length < 6) || (_root.toEmail.text.indexOf(",") >= 0)) || (_root.toEmail.text.indexOf(";") >= 0)) || (_root.toEmail.text.indexOf(":") >= 0)) || (_root.toEmail.text.indexOf("/") >= 0)) || (_root.toEmail.text.indexOf(" ") >= 0)) || (_root.toEmail.text.indexOf("@") <= 0)) || (_root.toEmail.text.indexOf("@") != _root.toEmail.text.lastIndexOf("@"))) || (_root.toEmail.text.lastIndexOf(".") < _root.toEmail.text.indexOf("@"))) || ((_root.toEmail.text.lastIndexOf(".") + 3) > _root.toEmail.text.length)) {
_root.sStatus.text = "The emailadress is incorrect.";
} else {
_root.sendEmail(_root.toEmail.text);
}
}
Symbol 241 Button
on (release) {
gotoAndStop (3);
}