WWD[Worlds Worst Drivers] - Dr!ven -- 25 Line Version


function crt(id, fill, x1, x2, y1, y2, x, y) {
 var k = _root.createEmptyMovieClip(id, _root.getNextHighestDepth());
 //1
 k.beginFill(fill);
 //2
 k.moveTo(x1, y1);
 //3
 kpt = new Array({x:x1, y:y1}, {x:x1, y:y2}, {x:x2, y:y2}, {x:x2, y:y1});
 //4
 for (var e = 1; e<kpt.length; e++) {
  //5
  k.lineTo(kpt[e].x, kpt[e].y);
  //6
 }
 k._y = y;
 //7
 k._x = x;
 //8
}
scr = 0;
//9
crt("road", 0x919191, Stage.width/4, Stage.width-(Stage.width/4), 0, Stage.height, 0, 0);
//10
crt("line", 0xFFFFFF, Stage.width/2-2, Stage.width/2+2, 0, Stage.height, 0, 0);
//11
crt("cart", 0x2F377B, -15, 15, -30, 30, 0-30, 0-15);
//12
crt("car", 0xC71616, -15, 15, -30, 30, Stage.height-50, Stage.width/2);
//13
crt("grassl", 0x39952F, 0, Stage.width/4, 0, Stage.height, 0, 0);
//14
crt("grassr", 0x39952F, Stage.width-(Stage.width/4), 0, 0, Stage.height, Stage.width-(Stage.width/4), 0);
//15
this.createTextField("scor", _root.getNextHighestDepth(), 10, 10, 200, 50);
//16
setInterval(ccar, 750);
//17
onEnterFrame = function () {
 car.getBounds(_root).xMin>Stage.width/4 && Key.isDown(Key.LEFT) ? car._x -= 3 : (car.getBounds(_root).xMax<Stage.width-Stage.width/4 && Key.isDown(Key.RIGHT) ? car._x += 3 : null);
 //18
 car.getBounds(_root).yMax<Stage.height && Key.isDown(Key.DOWN) ? car._y += 3 : (car.getBounds(_root).yMin>0 && Key.isDown(Key.UP) ? car._y -= 3 : null);
 //19
};
function ccar() {
 cart.duplicateMovieClip("en"+getNextHighestDepth(), getNextHighestDepth(), {_x:random(Stage.width/2)+Stage.width/4, _y:0, spd:random(7)+1, onEnterFrame:function () {
  //20
  this._y<Stage.height ? this._y += (this.spd) : this.removeMovieClip();
  //21
  this.hitTest(car) ? scr=-1 : scor.text=(scr += 1);
  //22
  this._rotation != 0 ? (this._x<Stage.width/2 ? this._x -= 5 : (this._x>=Stage.width/2 ? this._x += 5 : null)) : null;
  //23
  for (var i = 0; i<getNextHighestDepth(); i++) {
   //24
   _root["en"+i].hitTest(this._x, this._y+20, true) && this._name.indexOf(i) == -1 ? (this._x<Stage.width/2 ? this._rotation=215 : (this._x>=Stage.width/2 ? this._rotation=135 : null)) : null;
   //25
  }
 }});
}

Post ur comments and/or high scores lol:P