A Steroid 0.1 This is the documentation of the first version of A Steroid. An OpenGL doped clone of Asteroid.
A Steroid runs under Windows and Linux, it is developed using glut 3.7. Various public library and utility were used to develop it.
The development of the game has followed various step, that are supposed to present opengl features of increasing complexity (from wireframe to texture mapping). At the end of each step, some exercises of various complexity are presented. Versions are numbered according these steps, version numbers ending with an 's' present the solution to the exercises proposed in previous step.
Each version is documented with Doc++ a free documentation system for C, C++ and Java generating both TeX and HTML output. The documentation is extracted directly from the C/C++ header/source comments. Detailed comments on the various aspects of each version, what features are added and how they were implemented, are described in the hmtl documentation. I hope that this can make the source a viable tool for teaching opengl.
This is the first version. We have setup the framework of the whole application.
Interesting Features:
- Inertial phyisics each object derived from GameObj has members describing its position,direction,speed etc.
- Opengl Transformation each object setup its trasformation according its position.
- Opengl Draw each object draw itself (now just in wireframe)
Exercises:
- Fractal Asteroids. Subclass from ast class a class with a random fractal silhouette (instead of a simple square)
- Triple shot: Subclass ship class for making a better ship
Alphabetic index Hierarchy of classes