Ben Evans University Second Year Project. Game Called Defender.
Hello, soldier, you have been specially selected as the defender of planet earth.
Your mission, if you choose to accept it. Fly around the planet and pulverise invading alien ships for as long as you can. Stop the aliens abducting the innocent people on the ground. Be warned if an alien ship manages to abduct a person and take them to top of the screen, they will no longer move randomly and will begin to hunt you down. This sounds like a challenge you were trained for.
But don’t worry soldier you’re not going into battle empty-handed. Your ship is equipped with a state of the art laser beam that has unlimited ammo and four smart bombs that will destroy anything on the screen. The ship also has three lives so use them wisely.
As time goes on more alien ships will arrive on planet earth increasing the difficulty of your mission. And remember the landscape bellow loops around so if you continually fly in the same direction you go to your original position. Good luck soldier.
Diff: GameEngine/PlayEngine.h
- Revision:
- 85:87bc28b151d8
- Parent:
- 82:3211b31e9421
- Child:
- 86:eecd168c3a23
diff -r f61c85a5f13a -r 87bc28b151d8 GameEngine/PlayEngine.h --- a/GameEngine/PlayEngine.h Tue May 26 14:39:45 2020 +0000 +++ b/GameEngine/PlayEngine.h Tue May 26 19:38:48 2020 +0000 @@ -15,9 +15,9 @@ #include <vector> /** PlayEngine Class - * @brief Runs the interactions betwween the different classes in the playable + * @brief Runs the interactions between the different classes in the playable * part of the game. Also to break down the size of game engine class. Means I - * can define the functions publically to test them then inheret them privetly. + * can define the functions publicly to test them then inherit them privately. * @author Benjamin Evans, University of Leeds * @date May 2020 */ @@ -52,7 +52,7 @@ /** Spawns aliens in random position of the screen*/ void spawn_aliens(); - /** Creats alien object and stores in vector*/ + /** Creates alien object and stores in vector*/ void create_alien(); /** Checks for alien people collision and sets abduction movements @@ -60,7 +60,7 @@ */ void check_alien_people_collision(int i); - /** Gets alien to fire bullets randomley towards spaceship + /** Gets alien to fire bullets randomly towards spaceship * @param i @details iterator from draw_alien for loop */ void alliens_fire_bullets(int i); @@ -75,7 +75,7 @@ */ void draw_aliens(); - // Explotion Control + // Explosion Control /** Creates bullet object if button A is pressed and stores in vector */ void create_explosion(Vector2D destroyed_position); @@ -93,15 +93,15 @@ void draw_people(); // Map Control - /** Resets map after set time so spaceship explosion animation showes */ + /** Resets map after set time so spaceship explosion animation shows */ void reset_map_timer(); /** Resets the map after spaceship death and timer has ended */ void reset_map(); - // Varibles ---------------------------------------------------------------- + // Variables --------------------------------------------------------------- - // Spacehip Control + // Spaceship Control /** Define points*/ int points_; @@ -128,10 +128,10 @@ /** Counter for spawning aliens*/ int spawn_alien_counter_; - /** Numeber of aliens on the screen at a time*/ + /** Number of aliens on the screen at a time*/ int alien_number_; - /** Miltiplier to increase number of alien as time goes on */ + /** Multiplier to increase number of alien as time goes on */ int spawn_time_multipler_; // Map Control @@ -153,7 +153,7 @@ /** Vector to store each new alien object*/ std::vector<Alien> alien_vector; - /** Vector to store each new eplosion object*/ + /** Vector to store each new explosion object*/ std::vector<Explosion> explosion_vector; /** Vector to store each new people object*/ @@ -177,4 +177,4 @@ Weapons weapons; }; -#endif \ No newline at end of file +#endif