Ben Evans University Second Year Project. Game Called Defender.

Dependencies:   mbed

https://os.mbed.com/media/uploads/evanso/84bc1a30759fd6a1e3f1fd1fae3e97c2.png

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.

Revisions of Alien/Alien.h

Revision Date Message Actions
33:7fedd8029473 2020-05-14 Began work on people class. People now randomly print on screen. File  Diff  Annotate
32:c006a9882778 2020-05-14 Multiple aliens now spawn in random positions and game has a set spawn rate. File  Diff  Annotate
31:6015e8ed859c 2020-05-14 Added get_pos function to position parent class. Added smart bomb weapon to weapons class. File  Diff  Annotate
28:a5958497d5ce 2020-05-13 Added Random Movement base class which is inherited by alien bullets and alien direction. Alien now shoots bullets randomly towards the spaceship. File  Diff  Annotate
27:8bb2bd97c319 2020-05-13 Added position parent class for other classes to inherit XY positions and direction bool. Added more Doxygen comments. Made code and comments multi-line to increase readability. File  Diff  Annotate
25:70b55f5bfc87 2020-05-12 Added explosion class. When the alien is now shot it explodes. File  Diff  Annotate
24:479da6ca0e7e 2020-05-12 Alien moves randomly and loops with the map when the spaceship get to the edge of the map. Alien also cant move off the map and can move towards the spaceship. File  Diff  Annotate
22:053c11a202e1 2020-05-06 Now that the main code structure is finished for alien and weapons I can unit test those classes. Added a unit test for the alien class and it passed! File  Diff  Annotate
21:f7d7834e3af1 2020-05-05 Alien now moves with the map as the spaceship moves. Alien also moves towards the x position of the spaceship by its self. File  Diff  Annotate
20:febd920ec29e 2020-05-04 Added collision detection so the alien and bullet is deleted if a bullet hits it. File  Diff  Annotate
19:1bc0a2d22054 2020-05-03 Bullets can now be shot in both directions. Began work on alien class. File  Diff  Annotate