HOME
home · Tutorials


Tutorials for libKSD 0.1.0-pre1
Development of tutorials for libKSD-0.1.0-pre1 has stopped. Currently I work on tutorials for the CVS version of libKSD, which will be finalized when libKSD-0.1.0 is finalized.
There is however some tutorial material for this older version of libKSD, which I make available as a demonstration of libKSD. This is a Breakout game, and part of the Cannon walk-through.
Please note that the libKSD-0.1.0-pre1 tarball only works out-of-the-box if you use a g++ 2.95.x version. It does not work for g++ 3.2, mostly due to configure problems. This is a problem of the old tarball, and this is fixed in the CVS.
The tutorial tarball can be downloaded in the Download section. The may3 tarball is for use with -pre1. The tarball is compressed with bzip2, and modern versions of tar use the -j option (instead of -z) to uncompress. The tutorial text is also available on-line:

The html text is generated by doxygen.

0

Tutorials for libKSD 0.1.0 CVS
These tutorials are based on the CVS version of libKSD, and therefore in a relatively fast flux. It contains modifications of the -pre1 tutorials and a bit more.
The CVS version I use is of May 8th 2003, but may naturally change any time. This version does not compile ksd_gui, and thus the Cannon walk-through is only very limited. The simple collision detection routines have been removed but I have implemented some collision detection myself; the Breakout tutorial is functional.
The Spaceship Galaxy tutorial, a simple chromium clone (space-shooter) is work in progress, but not playable. It has no priority yet.
I will make adapted versions available only on request, as at present most of the code is either the same or does (in case of Cannon) not work at all. Closer to the 0.1.0 release I will make a the tutorials for that CVS version available.

0

Breakout
To give an impression what the Breakout game/example/tutorial is, I present you with a screenshot. The idea is that you control the paddle on the bottom, which can move left and right, and the ball moves. If the ball hits a brick (the gray or blue stones) the brick is destroyed and you get points. The paddle is used to keep the ball from passing through the floor.

Cannon
The Cannon walk-through is based on the Qt (see Links section) tutorial. I included a screenshot of the finished Qt cannon application.
As can be readily seen, this application uses quite some widgets. Those widgets are not yet available for libKSD, so I am going to create them. As for now this Cannon tutorial deals with the ksd widgets coming with the -pre1 version. It however also presents in a quite extensive way some generic libKSD programming properties.

  © 2003 · Leon Widdershoven · Email