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 main.cpp

Revision Date Message Actions
12:1c0b6796aaca 2020-04-24 Added unit test for map, which it passed. File  Diff  Annotate
11:ab578a151f67 2020-04-23 Added test files and ran a spaceship unit test, which it passed! Also cleaned up code and comments. File  Diff  Annotate
10:aca793aa7abc 2020-04-22 Reduced length of spaceship movement function using a switch statement. In the previous commit, I changed the draw line function in the LCD class; I changed its unassigned int variables to normal int variables as it was crashing the game. File  Diff  Annotate
9:1ddb8dc93e48 2020-04-21 Made the map loop back on its self when you reach the ends, therefore the map never ends File  Diff  Annotate
8:dd1037c5435b 2020-04-19 Added GameEnigne class to run the different parts of the game and tidied up code. File  Diff  Annotate
7:0af4ced868f5 2020-04-18 A random map now is drawn on the screen and the map moves with joystick input making it look like the spaceship is moving through the map. File  Diff  Annotate
6:12e8433382b3 2020-04-16 Restricted spaceship movement to middle third of the screen in the x-direction. Started adding drawing functions to map class. File  Diff  Annotate
4:0df2b85e47f1 2020-04-14 Added sprite movement using the analogue stick File  Diff  Annotate
3:dee187b8b30c 2020-04-13 Drawn spaceship sprite and displays it on LCD using event-triggered tasks File  Diff  Annotate
2:86e6a67f35a9 2020-04-09 initial commit File  Diff  Annotate
1:1f2ae263248e 2020-02-23 Sart of Project ; File  Diff  Annotate
0:b7f1f47bb26a 2020-02-03 ELEC2645 starter project File  Diff  Annotate