A Steroid 0.3


oCopyright and disclaimer
oCompiling
oThe main code
oThe GameSession and GameObj Classes
oThe 3D Classes
oVersion History and Acknowledgements
A Steroid 0.3

This is the documentation of the third version of A Steroid. The new features added in this version are:

In this version the objects begin to interact each other. We want to know if an asteroid is hit by a bullet or it is rolling over the user ship. For this reason we have added to the GameObj class a member variable where to store a bounding sphere of the GameObj itself and a member function to test the collision. We have also modified the GameSession classes adding two new member functions to test the collision between asteroids and the ship and between bullets and asteroids. Also the GameSession:update has been modified to check the various collision and display the results i.e. explosions that were modeled into an new Exp class.

Some other modification involved some performance optimization obtained by enabling culling and disabling twosided illumination in the myGLInit() function. Note that this assume that we always gives the faces in the correct counter-clockwise vertex ordering.

Exercises:

Some Problems:

Author:
Paolo Cignoni (cignoni@iei.pi.cnr.it).

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.