A very simple demo of a 2D camera in Solar2D. Download the camera library from here
and the demo here
.Use the arrow/WASD keys to drive the cars and the spacebar/Z for the handbrake. Change camera focus between the cars with 1 and 2, zoom in and out with X and C.