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 PUP_TEST_H
el18jgb 13:cfdfe60a2327 2 #define PUP_TEST_H
el18jgb 13:cfdfe60a2327 3
el18jgb 13:cfdfe60a2327 4 /** PUP Test
el18jgb 22:7406068f6c59 5 * @brief pup test
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
el18jgb 22:7406068f6c59 12 bool pup_test_double()
el18jgb 21:a0f3651f56c4 13 {
el18jgb 22:7406068f6c59 14 // Initialise and position
el18jgb 21:a0f3651f56c4 15 Pup pup;
el18jgb 22:7406068f6c59 16 pup.init();
el18jgb 22:7406068f6c59 17 pup.position(5, 5);
el18jgb 21:a0f3651f56c4 18
el18jgb 21:a0f3651f56c4 19 // Read the position
el18jgb 22:7406068f6c59 20 Vector2D read_pos_1 = pup.get_pos();
el18jgb 21:a0f3651f56c4 21 printf("%f, %f\n", read_pos_1.x, read_pos_1.y);
el18jgb 21:a0f3651f56c4 22
el18jgb 21:a0f3651f56c4 23 // Now check that both the position is as expected
el18jgb 22:7406068f6c59 24 bool success_flag = false;
el18jgb 21:a0f3651f56c4 25
el18jgb 21:a0f3651f56c4 26 // Fail the test if the initial position is wrong
el18jgb 22:7406068f6c59 27 if (read_pos_1.x == 10 || read_pos_1.y == 10) {
el18jgb 22:7406068f6c59 28 success_flag = true;
el18jgb 21:a0f3651f56c4 29 }
el18jgb 21:a0f3651f56c4 30
el18jgb 21:a0f3651f56c4 31 return success_flag;
el18jgb 21:a0f3651f56c4 32 }
el18jgb 13:cfdfe60a2327 33
el18jgb 13:cfdfe60a2327 34
el18jgb 13:cfdfe60a2327 35 #endif