A C+SDL+Cairo demo. Navigate a triangle around the screen with simple acceleration and drag physics.
http://github.com/acdimalev/acdimalev-demo-2010-04-21-01
You must have Cairo and SDL installed to build this demo.
This demo was developed on a Debian Lenny system with the following dev packages installed:
- libcairo2-dev=1.6.4-7
- libsdl1.2-dev=1.2.13-2
To build and execute the demo, run "make" and then "./foo".
$ make
$ ./foo
The demo will pop up in a window. You can then use the following controls to manipulate the triangle:
- LEFT — turn left
- RIGHT — turn right
- UP — forward
- Q — quit
- F — toggle fullscreen
- H — stretch image (corrects aspect ratio when displaying on my HDTV)