Frame 114
stop();
Frame 115
stop();
Frame 116
function showlives() {
lives_txt.text = lives;
}
function wheelControl() {
this._y = this._y + this.dy;
accelerating = false;
if (Key.isDown(39) && (oneOnGround)) {
this.dx = this.dx + 0.6;
mydir = 1;
accelerating = true;
}
if (Key.isDown(37) && (oneOnGround)) {
this.dx = this.dx - 0.6;
mydir = -1;
accelerating = true;
}
if (accelerating && (Math.abs(this.dx) < 2)) {
enginerev.start(0, 0);
}
if (oneOnGround) {
this.dx = this.dx * 0.98;
}
this.dy = this.dy + 0.5;
if (ground.hitTest(this._x, this._y, true)) {
var _local2 = this._y;
var _local3 = 0;
while (ground.hitTest(this._x, _local2, true)) {
_local2--;
_local3++;
}
if (_local3 > 70) {
wheel0.dx = wheel0.dx * -1;
wheel1.dx = wheel1.dx * -1;
ground._x = ground._x - this.dx;
crash.start(0, 0);
} else {
if (_local3 < 5) {
_local3 = 0;
}
this._y = _local2;
this.dy = this.dy + ((-_local3) / 3);
this.onGround = true;
}
} else {
this.onGround = false;
}
if (this.dy > 15) {
this.dy = 15;
}
if (this.dy < -15) {
this.dy = -15;
}
}
function setWetLevel(lvl) {
waterMeter._yscale = lvl * 100;
}
function myOnKeyDown() {
if (Key.isDown(17) && (oneOnGround)) {
bounce.start(0, 0);
if (mydir == -1) {
wheel0.dy = -11;
wheel1.dy = -10;
} else {
wheel0.dy = -10;
wheel1.dy = -11;
}
}
}
stop();
makeRandomTerrain = function () {
var _local8 = 250;
var _local3 = 0;
var _local5 = 0;
var _local2 = _local8 - 220;
var _local6 = 0;
var _local7 = 0;
var _local9 = 0;
ground.clear();
ground.moveTo(_local3, _local8);
ground.beginFill(9523257);
ground.createEmptyMovieClip("objs", 1);
_root.waterMC.removeMovieClip();
_root.createEmptyMovieClip("waterMC", _root.getNextHighestDepth());
waterMC._y = 295;
var _local10 = 0;
while (_local3 < 15100) {
var _local4 = (Math.random() * 100) + 50;
_local2 = _local2 + (Math.sin(_local5) * _local4);
_local5 = _local5 + ((Math.random() * 2) - 1);
if (_local6 > 0) {
_local2 = _local8 + 300;
_local6--;
} else if (_local2 < -100) {
_local2 = -100;
_local5 = 0.1;
} else if (_local2 > (_local8 - 100)) {
_local2 = _local8 - 100;
_local5 = -0.1;
}
if (_local7 > 0) {
_local7--;
}
if ((((Math.random() < 0.033) && (_local6 == 0)) && (_local3 > 700)) && (_local7 == 0)) {
_local6 = Math.floor(Math.random() * 3) + 3;
_local7 = _local6 + 5;
_local2 = ohei - 40;
}
if (random(10) > 10) {
_local3 = _local3 + _local4;
ground.lineTo(_local3, _local2);
} else {
ground.curveTo(_local3 + (_local4 / 2), _local2 + (_local5 * 10), _local3 + _local4, _local2);
_local3 = _local3 + _local4;
}
if ((((Math.random() < 0.1) && (_local5 > -0.1)) && (_local3 > 500)) && (_local3 < 14000)) {
var _local11 = "bldr" + _local9;
ground.objs.attachMovie("trackObjects", _local11, _local9);
ground.objs[_local11]._x = _local3;
ground.objs[_local11]._y = _local2 + 10;
ground.objs[_local11].gotoAndStop(Math.floor(Math.random() * 4) + 1);
_local9++;
}
if ((_local10 % 25) == 20) {
var _local11 = "drop" + waterMC.getNextHighestDepth();
waterMC.attachMovie("waterDrop", _local11, waterMC.getNextHighestDepth());
waterMC[_local11]._x = _local3;
waterMC[_local11]._y = _local2 + 2;
}
_local10++;
ohei = _local2;
}
var _local11 = "finisher";
ground.objs.attachMovie("trackObjects", _local11, _local9);
ground.objs[_local11]._x = _local3 - 600;
ground.objs[_local11]._y = _local2 + 10;
ground.objs[_local11].gotoAndStop(6);
ground.lineTo(_local3, _local8 + 400);
ground.lineTo(0, _local8 + 400);
ground.endFill();
lastGet = 0;
};
wheel1.dx = 0;
wheel1.dy = 0;
wheel1.onEnterFrame = wheelControl;
wheel0.dx = 0;
wheel0.dy = 0;
wheel0.onEnterFrame = wheelControl;
_quality = "MEDIUM";
ground.onEnterFrame = function () {
this._x = this._x - wheel1.dx;
waterMC._x = this._x;
minicar._x = ((-this._x) / this._width) * 640;
if (this._x > 0) {
this._x = 0;
wheel1.dx = 0;
wheel0.dx = 0;
}
if (wheel1._y > 600) {
if (lives == 0) {
endClip._visible = true;
endClip.gotoAndStop(2);
delete wheel0.onEnterFrame;
delete wheel1.onEnterFrame;
delete this.onEnterFrame;
delete car.onEnterFrame;
return(false);
}
wheel1._y = 100;
wheel1.dx = 0;
wheel1.dy = 0;
wheel0._y = 100;
wheel0.dx = 0;
wheel0.dy = 0;
this._x = 0;
fall.start(0, 0);
lives--;
showlives();
}
if ((-this._x) > this.objs.finisher._x) {
wheel1._y = 100;
wheel1.dx = 0;
wheel1.dy = 0;
wheel0._y = 100;
wheel0.dx = 0;
wheel0.dy = 0;
this._x = 0;
makeRandomTerrain();
}
};
ground._x = 0;
ground._y = 295;
ground.c = new Color(ground);
ground.t = new Object();
ground.t.ra = 100;
ground.t.ga = 100;
ground.t.ba = 100;
ground.t.rb = 0;
ground.t.gb = 0;
ground.t.bb = 0;
sky.c = new Color(sky);
sky.t = new Object();
sky.t.ra = 100;
sky.t.ga = 100;
sky.t.ba = 100;
sky.t.rb = 0;
sky.t.gb = 0;
sky.t.bb = 0;
var myListener = new Object();
myListener.onKeyDown = myOnKeyDown;
Key.addListener(myListener);
car.onEnterFrame = function () {
var _local7 = (wheel1._y + wheel0._y) / 2;
this._x = 189.1;
this._y = _local7;
var _local5 = wheel1._x - wheel0._x;
var _local4 = wheel1._y - wheel0._y;
var _local3 = Math.atan2(_local4, _local5);
this._rotation = 180 * (_local3 / Math.PI);
wheel0._rotation = this._rotation + 40;
wheel1._rotation = this._rotation - 40;
allOnGround = wheel0.onGround & wheel1.onGround;
oneOnGround = wheel0.onGround | wheel1.onGround;
if ((allOnGround && (!accelerating)) && ((_local3 < -0.1) || (_local3 > 0.1))) {
wheel0.dx = wheel0.dx + (_local3 / 2);
wheel1.dx = wheel1.dx + (_local3 / 2);
}
if (_local3 < -1.4) {
_local3 = -1.4;
}
if (_local3 > 1.4) {
_local3 = 1.4;
}
var _local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if ((_local6 > 61) || (_local6 < 58)) {
wheel0._x = this._x - (Math.cos(_local3) * 30);
wheel0._y = this._y - (Math.sin(_local3) * 30);
wheel1._x = this._x + (Math.cos(_local3) * 30);
wheel1._y = this._y + (Math.sin(_local3) * 30);
}
this._xscale = mydir * 153.8;
if (waterMC.hitTest(this._x, this._y, true)) {
var _local2 = lastGet;
while (_local2 < waterMC.getNextHighestDepth()) {
if (waterMC["drop" + _local2].hitTest(this._x, this._y, true)) {
waterMC["drop" + _local2].removeMovieClip();
lastGet = _local2 + 1;
gWetLevel = gWetLevel + 0.02;
setWetLevel(gWetLevel);
lives++;
showlives();
if (gWetLevel >= 1) {
endClip._visible = true;
endClip.gotoAndStop(1);
delete wheel0.onEnterFrame;
delete wheel1.onEnterFrame;
delete ground.onEnterFrame;
delete this.onEnterFrame;
}
break;
}
_local2++;
}
}
};
crash = new Sound();
crash.attachSound("crash");
fall = new Sound();
fall.attachSound("fall");
bounce = new Sound();
bounce.attachSound("bounce");
engineloop = new Sound(car);
engineloop.attachSound("engineloop");
engineloop.start(0, 99999);
engineloop.setVolume(50);
gWetLevel = 0;
makeRandomTerrain();
setWetLevel(gWetLevel);
lives = 10;
showlives();
endClip._visible = false;
endClip.stop();
Frame 117
stopAllSounds();
Frame 118
function showlives() {
lives_txt.text = lives;
}
function wheelControl() {
this._y = this._y + this.dy;
accelerating = false;
if (Key.isDown(39) && (oneOnGround)) {
this.dx = this.dx + 0.6;
mydir = 1;
accelerating = true;
}
if (Key.isDown(37) && (oneOnGround)) {
this.dx = this.dx - 0.6;
mydir = -1;
accelerating = true;
}
if (accelerating && (Math.abs(this.dx) < 2)) {
enginerev.start(0, 0);
}
if (oneOnGround) {
this.dx = this.dx * 0.98;
}
this.dy = this.dy + 0.5;
if (ground.hitTest(this._x, this._y, true)) {
var _local2 = this._y;
var _local3 = 0;
while (ground.hitTest(this._x, _local2, true)) {
_local2--;
_local3++;
}
if (_local3 > 70) {
wheel0.dx = wheel0.dx * -1;
wheel1.dx = wheel1.dx * -1;
ground._x = ground._x - this.dx;
crash.start(0, 0);
} else {
if (_local3 < 5) {
_local3 = 0;
}
this._y = _local2;
this.dy = this.dy + ((-_local3) / 3);
this.onGround = true;
}
} else {
this.onGround = false;
}
if (this.dy > 15) {
this.dy = 15;
}
if (this.dy < -15) {
this.dy = -15;
}
}
function setWetLevel(lvl) {
waterMeter._yscale = lvl * 100;
}
function myOnKeyDown() {
if (Key.isDown(17) && (oneOnGround)) {
bounce.start(0, 0);
if (mydir == -1) {
wheel0.dy = -11;
wheel1.dy = -10;
} else {
wheel0.dy = -10;
wheel1.dy = -11;
}
}
}
stop();
makeRandomTerrain = function () {
var _local8 = 250;
var _local3 = 0;
var _local5 = 0;
var _local2 = _local8 - 220;
var _local6 = 0;
var _local7 = 0;
var _local9 = 0;
ground.clear();
ground.moveTo(_local3, _local8);
ground.beginFill(9523257);
ground.createEmptyMovieClip("objs", 1);
_root.waterMC.removeMovieClip();
_root.createEmptyMovieClip("waterMC", _root.getNextHighestDepth());
waterMC._y = 295;
var _local10 = 0;
while (_local3 < 15100) {
var _local4 = (Math.random() * 100) + 50;
_local2 = _local2 + (Math.sin(_local5) * _local4);
_local5 = _local5 + ((Math.random() * 2) - 1);
if (_local6 > 0) {
_local2 = _local8 + 300;
_local6--;
} else if (_local2 < -100) {
_local2 = -100;
_local5 = 0.1;
} else if (_local2 > (_local8 - 100)) {
_local2 = _local8 - 100;
_local5 = -0.1;
}
if (_local7 > 0) {
_local7--;
}
if ((((Math.random() < 0.033) && (_local6 == 0)) && (_local3 > 700)) && (_local7 == 0)) {
_local6 = Math.floor(Math.random() * 3) + 3;
_local7 = _local6 + 5;
_local2 = ohei - 40;
}
if (random(10) > 10) {
_local3 = _local3 + _local4;
ground.lineTo(_local3, _local2);
} else {
ground.curveTo(_local3 + (_local4 / 2), _local2 + (_local5 * 10), _local3 + _local4, _local2);
_local3 = _local3 + _local4;
}
if ((((Math.random() < 0.1) && (_local5 > -0.1)) && (_local3 > 500)) && (_local3 < 14000)) {
var _local11 = "bldr" + _local9;
ground.objs.attachMovie("trackObjects", _local11, _local9);
ground.objs[_local11]._x = _local3;
ground.objs[_local11]._y = _local2 + 10;
ground.objs[_local11].gotoAndStop(Math.floor(Math.random() * 4) + 1);
_local9++;
}
if ((_local10 % 25) == 20) {
var _local11 = "drop" + waterMC.getNextHighestDepth();
waterMC.attachMovie("waterDrop", _local11, waterMC.getNextHighestDepth());
waterMC[_local11]._x = _local3;
waterMC[_local11]._y = _local2 + 2;
}
_local10++;
ohei = _local2;
}
var _local11 = "finisher";
ground.objs.attachMovie("trackObjects", _local11, _local9);
ground.objs[_local11]._x = _local3 - 600;
ground.objs[_local11]._y = _local2 + 10;
ground.objs[_local11].gotoAndStop(6);
ground.lineTo(_local3, _local8 + 400);
ground.lineTo(0, _local8 + 400);
ground.endFill();
lastGet = 0;
};
wheel1.dx = 0;
wheel1.dy = 0;
wheel1.onEnterFrame = wheelControl;
wheel0.dx = 0;
wheel0.dy = 0;
wheel0.onEnterFrame = wheelControl;
_quality = "MEDIUM";
ground.onEnterFrame = function () {
this._x = this._x - wheel1.dx;
waterMC._x = this._x;
minicar._x = ((-this._x) / this._width) * 640;
if (this._x > 0) {
this._x = 0;
wheel1.dx = 0;
wheel0.dx = 0;
}
if (wheel1._y > 600) {
if (lives == 0) {
endClip._visible = true;
endClip.gotoAndStop(2);
delete wheel0.onEnterFrame;
delete wheel1.onEnterFrame;
delete this.onEnterFrame;
delete car.onEnterFrame;
return(false);
}
wheel1._y = 100;
wheel1.dx = 0;
wheel1.dy = 0;
wheel0._y = 100;
wheel0.dx = 0;
wheel0.dy = 0;
this._x = 0;
fall.start(0, 0);
lives--;
showlives();
}
if ((-this._x) > this.objs.finisher._x) {
wheel1._y = 100;
wheel1.dx = 0;
wheel1.dy = 0;
wheel0._y = 100;
wheel0.dx = 0;
wheel0.dy = 0;
this._x = 0;
makeRandomTerrain();
}
};
ground._x = 0;
ground._y = 295;
ground.c = new Color(ground);
ground.t = new Object();
ground.t.ra = 100;
ground.t.ga = 100;
ground.t.ba = 100;
ground.t.rb = 0;
ground.t.gb = 0;
ground.t.bb = 0;
sky.c = new Color(sky);
sky.t = new Object();
sky.t.ra = 100;
sky.t.ga = 100;
sky.t.ba = 100;
sky.t.rb = 0;
sky.t.gb = 0;
sky.t.bb = 0;
var myListener = new Object();
myListener.onKeyDown = myOnKeyDown;
Key.addListener(myListener);
car.onEnterFrame = function () {
var _local7 = (wheel1._y + wheel0._y) / 2;
this._x = 189.1;
this._y = _local7;
var _local5 = wheel1._x - wheel0._x;
var _local4 = wheel1._y - wheel0._y;
var _local3 = Math.atan2(_local4, _local5);
this._rotation = 180 * (_local3 / Math.PI);
wheel0._rotation = this._rotation + 40;
wheel1._rotation = this._rotation - 40;
allOnGround = wheel0.onGround & wheel1.onGround;
oneOnGround = wheel0.onGround | wheel1.onGround;
if ((allOnGround && (!accelerating)) && ((_local3 < -0.1) || (_local3 > 0.1))) {
wheel0.dx = wheel0.dx + (_local3 / 2);
wheel1.dx = wheel1.dx + (_local3 / 2);
}
if (_local3 < -1.4) {
_local3 = -1.4;
}
if (_local3 > 1.4) {
_local3 = 1.4;
}
var _local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if ((_local6 > 61) || (_local6 < 58)) {
wheel0._x = this._x - (Math.cos(_local3) * 30);
wheel0._y = this._y - (Math.sin(_local3) * 30);
wheel1._x = this._x + (Math.cos(_local3) * 30);
wheel1._y = this._y + (Math.sin(_local3) * 30);
}
this._xscale = mydir * 153.8;
if (waterMC.hitTest(this._x, this._y, true)) {
var _local2 = lastGet;
while (_local2 < waterMC.getNextHighestDepth()) {
if (waterMC["drop" + _local2].hitTest(this._x, this._y, true)) {
waterMC["drop" + _local2].removeMovieClip();
lastGet = _local2 + 1;
gWetLevel = gWetLevel + 0.02;
setWetLevel(gWetLevel);
lives++;
showlives();
if (gWetLevel >= 1) {
endClip._visible = true;
endClip.gotoAndStop(1);
delete wheel0.onEnterFrame;
delete wheel1.onEnterFrame;
delete ground.onEnterFrame;
delete this.onEnterFrame;
}
break;
}
_local2++;
}
}
};
crash = new Sound();
crash.attachSound("crash");
fall = new Sound();
fall.attachSound("fall");
bounce = new Sound();
bounce.attachSound("bounce");
engineloop = new Sound(car);
engineloop.attachSound("engineloop");
engineloop.start(0, 99999);
engineloop.setVolume(50);
gWetLevel = 0;
makeRandomTerrain();
setWetLevel(gWetLevel);
lives = 10;
showlives();
endClip._visible = false;
endClip.stop();
Symbol 61 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 63 MovieClip Frame 40
stop();
Symbol 89 Button
on (release) {
_root.play();
}
Symbol 90 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 90 MovieClip Frame 51
Symbol 94 Button
on (release) {
gotoAndStop (114);
}
Symbol 195 Button
on (release) {
gotoAndPlay (115);
}
Symbol 201 Button
on (release) {
gotoAndStop(help);
}
Symbol 203 Button
on (release) {
gotoAndStop ("easy");
}
Symbol 214 Button
on (release) {
gotoAndPlay ("hard");
}
Symbol 220 Button
on (release) {
gotoAndStop (114);
}
Symbol 243 Button
on (release) {
makeRandomTerrain();
}
Symbol 245 Button
on (release) {
stopAllSounds();
gotoAndStop (114);
}
Symbol 247 Button
on (release) {
gotoAndStop (2);
}
Symbol 250 Button
on (release) {
gotoAndStop (1);
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stopAllSounds();
Symbol 255 Button
on (release) {
gotoAndStop (3);
}
Symbol 258 Button
on (release) {
gotoAndStop (2);
}
Symbol 259 MovieClip Frame 1
stopAllSounds();
Symbol 259 MovieClip Frame 2
stop();
Symbol 259 MovieClip Frame 3
stopAllSounds();