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.

Committer:
evanso
Date:
Thu May 21 22:46:23 2020 +0000
Revision:
68:bb1650c657ef
Child:
69:753ba27325ce
Added sprites file to store letter for the title screen and arrows for menus. Also added a time to stop double-button presses.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
evanso 68:bb1650c657ef 1 #ifndef SPRITES_H
evanso 68:bb1650c657ef 2 #define SPRITES_H
evanso 68:bb1650c657ef 3
evanso 68:bb1650c657ef 4 const int arrow_up[3][5] = {
evanso 68:bb1650c657ef 5 { 0, 0, 1, 0, 0 },
evanso 68:bb1650c657ef 6 { 0, 1, 1, 1, 0 },
evanso 68:bb1650c657ef 7 { 1, 1, 1, 1, 1 },
evanso 68:bb1650c657ef 8 };
evanso 68:bb1650c657ef 9
evanso 68:bb1650c657ef 10 const int arrow_down[3][5] = {
evanso 68:bb1650c657ef 11 { 1, 1, 1, 1, 1 },
evanso 68:bb1650c657ef 12 { 0, 1, 1, 1, 0 },
evanso 68:bb1650c657ef 13 { 0, 0, 1, 0, 0 },
evanso 68:bb1650c657ef 14 };
evanso 68:bb1650c657ef 15
evanso 68:bb1650c657ef 16 const int title_screen_d[10][8] = {
evanso 68:bb1650c657ef 17 {1,1,1,1,1,0,0,0},
evanso 68:bb1650c657ef 18 {1,1,1,1,1,1,1,0},
evanso 68:bb1650c657ef 19 {1,1,0,0,0,1,1,1},
evanso 68:bb1650c657ef 20 {1,1,0,0,0,0,1,1},
evanso 68:bb1650c657ef 21 {1,1,0,0,0,0,1,1},
evanso 68:bb1650c657ef 22 {1,1,0,0,0,0,1,1},
evanso 68:bb1650c657ef 23 {1,1,0,0,0,0,1,1},
evanso 68:bb1650c657ef 24 {1,1,0,0,0,1,1,1},
evanso 68:bb1650c657ef 25 {1,1,1,1,1,1,1,0},
evanso 68:bb1650c657ef 26 {1,1,1,1,1,1,0,0}
evanso 68:bb1650c657ef 27 };
evanso 68:bb1650c657ef 28
evanso 68:bb1650c657ef 29 const int title_screen_e[10][7] = {
evanso 68:bb1650c657ef 30 {0,1,1,1,1,1,1},
evanso 68:bb1650c657ef 31 {1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 32 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 33 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 34 {1,1,1,1,1,0,0},
evanso 68:bb1650c657ef 35 {1,1,1,1,1,0,0},
evanso 68:bb1650c657ef 36 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 37 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 38 {1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 39 {0,1,1,1,1,1,1}
evanso 68:bb1650c657ef 40 };
evanso 68:bb1650c657ef 41
evanso 68:bb1650c657ef 42 const int title_screen_f[10][7] = {
evanso 68:bb1650c657ef 43 {0,1,1,1,1,1,1},
evanso 68:bb1650c657ef 44 {1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 45 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 46 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 47 {1,1,1,1,1,1,0},
evanso 68:bb1650c657ef 48 {1,1,1,1,1,1,0},
evanso 68:bb1650c657ef 49 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 50 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 51 {1,1,0,0,0,0,0},
evanso 68:bb1650c657ef 52 {1,1,0,0,0,0,0}
evanso 68:bb1650c657ef 53 };
evanso 68:bb1650c657ef 54
evanso 68:bb1650c657ef 55 const int title_screen_n[10][7] = {
evanso 68:bb1650c657ef 56 {1,1,0,0,0,1,1},
evanso 68:bb1650c657ef 57 {1,1,1,0,0,1,1},
evanso 68:bb1650c657ef 58 {1,1,1,1,0,1,1},
evanso 68:bb1650c657ef 59 {1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 60 {1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 61 {1,1,0,1,1,1,1},
evanso 68:bb1650c657ef 62 {1,1,0,0,1,1,1},
evanso 68:bb1650c657ef 63 {1,1,0,0,0,1,1},
evanso 68:bb1650c657ef 64 {1,1,0,0,0,1,1},
evanso 68:bb1650c657ef 65 {1,1,0,0,0,1,1},
evanso 68:bb1650c657ef 66 };
evanso 68:bb1650c657ef 67
evanso 68:bb1650c657ef 68 const int title_screen_r[10][8] = {
evanso 68:bb1650c657ef 69 {0,1,1,1,1,1,1,0},
evanso 68:bb1650c657ef 70 {1,1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 71 {1,1,0,0,0,0,1,1},
evanso 68:bb1650c657ef 72 {1,1,0,0,0,0,1,1},
evanso 68:bb1650c657ef 73 {1,1,1,1,1,1,1,1},
evanso 68:bb1650c657ef 74 {1,1,1,1,1,1,1,0},
evanso 68:bb1650c657ef 75 {1,1,0,1,1,1,0,0},
evanso 68:bb1650c657ef 76 {1,1,0,0,1,1,1,0},
evanso 68:bb1650c657ef 77 {1,1,0,0,0,1,1,1},
evanso 68:bb1650c657ef 78 {1,1,0,0,0,0,1,1}
evanso 68:bb1650c657ef 79 };
evanso 68:bb1650c657ef 80
evanso 68:bb1650c657ef 81 #endif