Drowned in Java bloat?
A whiff of refreshing C breeze for you, then!
Imagine a car racing program with collission detection, decent graphics and the other features listed below.
In 63 lines of C code.
.
Features
========
This program is a complete car race game with a lot of nice features:* Drive on a road in a 3-d landscape with hills and curves
* Mountains in the horizon
* A sun in the sky when driving during the day.
* Dark sky and reduced visibility when driving at night.
* Snow when driving in the winter.
* Slippery road when driving in the winter.
* When driving off the road, the car slows down to a halt
* Three different race tracks that takes about one minute to complete.
* Speed meter.
* Computer driven opponent cars.
* Collision detection when driving into other cars.
* Lap time measurement.
* The best lap time is stored as reference.
Well, 63 lines of obfuscated C code, yes, but nevertheless, 63 lines.
Description: vik1 car racing game at the IOCCC.
Source code and Makefile: Look for vik1 on this page : http://www.au.ioccc.org/years.html#2004
Kudos to Daniel Vik for “Best X11 Game”.
A marvel eh?