Joe Body 201215898

Dependencies:   mbed

Navigation

  • From the Main Menu the A button will take you into one of the play, highscore or instructions options.
  • The B button will return you to the Main Menu from either the highscore or instruction screens, though this is prompted on screen.
  • When in the Main Menu Pot1 can be used to adjust the contrast and the volume control by the speaker is active.
  • When the game is over the B button can be used to return to the Main Menu, again this is prompted.
  • To return to the Main Menu while the game is being played the reset button must be pressed, this will not save your score or anything about the game.

In Game

  • While in the game the A button is used to shoot while you aim with the Joystick.
  • You have control over the cross while the objective of the game is to rack up as many points shooting the moving head.
  • There is a slight reload time on each shot so you are unable to spam A if you miss.
  • Once you miss 6 times the game will end and your score will be saved.
  • When hit by a falling spike the game will transition and the head will vanish.
  • 4 new spikes will spawn which you need to avoid, being hit by 1 of these will decrease your remaining miss chances by 5.
  • When the game is in this state you must avoid these spikes by tilting the device, the Joystick will have no effect.
  • The head will move progressively faster as the game goes on, make use of the clock power up by shooting it when it appears, this will slow the head down to a more manageable level hopefully helping you to reach a higher score.

Highscore

  • If you have a SD card inserted into the device the game can save your highest score.
  • A decent score is somewhere around 25.
Committer:
el18jgb
Date:
Sun May 24 11:24:57 2020 +0000
Revision:
23:0e8155320571
Parent:
22:7406068f6c59
Final Submission. I have read and agreed with Statement of Academic Integrity.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18jgb 13:cfdfe60a2327 1 #ifndef HESTON_TEST_H
el18jgb 13:cfdfe60a2327 2 #define HESTON_TEST_H
el18jgb 13:cfdfe60a2327 3
el18jgb 13:cfdfe60a2327 4 /** Heston class Test
el18jgb 22:7406068f6c59 5 * @brief Checks to do with heston class
el18jgb 13:cfdfe60a2327 6 * @author Jospeh Body, University of Leeds
el18jgb 13:cfdfe60a2327 7 * @date May 2020
el18jgb 13:cfdfe60a2327 8 * @return true if test are passed
el18jgb 13:cfdfe60a2327 9 */
el18jgb 13:cfdfe60a2327 10
el18jgb 13:cfdfe60a2327 11 bool Heston_test_initial()
el18jgb 13:cfdfe60a2327 12 {
el18jgb 13:cfdfe60a2327 13 // Initialise
el18jgb 13:cfdfe60a2327 14 Heston heston;
el18jgb 13:cfdfe60a2327 15 heston.init(); //_x = 42 _y = 24
el18jgb 13:cfdfe60a2327 16
el18jgb 13:cfdfe60a2327 17 // Read the position
el18jgb 22:7406068f6c59 18 Vector2D read_pos_1 = heston.get_pos();
el18jgb 13:cfdfe60a2327 19 printf("%f, %f\n", read_pos_1.x, read_pos_1.y);
el18jgb 13:cfdfe60a2327 20
el18jgb 13:cfdfe60a2327 21
el18jgb 13:cfdfe60a2327 22 // Now check that both the position is as expected
el18jgb 22:7406068f6c59 23 bool success_flag = false;
el18jgb 13:cfdfe60a2327 24
el18jgb 13:cfdfe60a2327 25 // Fail the test if the initial position is wrong
el18jgb 22:7406068f6c59 26 if (read_pos_1.x == 42 || read_pos_1.y == 24) {
el18jgb 22:7406068f6c59 27 success_flag = true;
el18jgb 13:cfdfe60a2327 28 }
el18jgb 13:cfdfe60a2327 29
el18jgb 13:cfdfe60a2327 30 return success_flag;
el18jgb 13:cfdfe60a2327 31 }
el18jgb 13:cfdfe60a2327 32
el18jgb 13:cfdfe60a2327 33 #endif