top down car game example for box2d an gamejs
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9241e28 Apr 28, 2013
Failed to load latest commit information.
javascript update to latest gamejs Apr 28, 2013
public update to latest gamejs Apr 28, 2013
LICENSE first commit Jun 29, 2011
README Update README Feb 9, 2013
index.html update to latest gamejs Apr 28, 2013


This is a simple as I could make it example of a HTML5 top-down car game using gamejs javascript game framework and box2d physics engine.

Live example at:

Based on and

The basic idea is to rotate front wheels when user steers and apply engine force on them. Wheels are connected to the car and drag it along.
Remove sideways velocity from all wheels every frame to simulate tire friction.
This model does not allow for drifting, but is very servicable for arcade top down car games.