This is the documentation of the fifth version of A Steroid.New Features:
- Texture Mapping: we have added texture loading function to the Mesh class and simple planar mapping to the Mesh::Draw(); Now the space ship has a new shape with textured color.
- Score and Asteroid refill: now during gameplay we have a score and three lives. To do this we have modified GameSession adding score and lives member.
- Sound effects and background music We have used the Seal audio library to add a background music and some effects (explosions and shots). This involved the creation of some global variables to store the "sounds", a pair of function (AudioSetup, AudioEnd) and a line or two of code in the various GameSession functions.
Exercises:
- Textured Asteroids. Wrap some texures on the asteroids, use the bitmap 'ast.png' in the data directory and wrap it with a cylindrical mapping..
Known bugs and problems:
- Memory management is a mess. We do not delete allocated asteroids and subasteroids
Alphabetic index Hierarchy of classes