A Steroid 0.3s This is the documentation of the third version of A Steroid modified according to the proposed exercises.
The new features added in this version are:
- Explosions with light
- FireBall Bullet
The add of light effects to explosions was relatively easy. The important fact is that at most three lights should be used to light the explosions. We have modified the existing Exp class adding two functions to light an explosion on and off, a static vector shared between all the explosion objects that store the owner of each of the three lights.
The BulletFireBall is a new class derived from bullet that has different draw and update functions. Also the Ship3D::Shoot() has been changed, the central bullet is a fireball one.
Pause Management was also added by implementing the GameSession::Pause() method and modifying the Key() glut callback.
Alphabetic index Hierarchy of classes