ELEC2645 (2018/19) / Mbed 2 deprecated el17dg

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

Revision:
27:f05f4e738ba9
Parent:
26:676874c42883
Child:
28:35af3843de8f
diff -r 676874c42883 -r f05f4e738ba9 menu/menu.cpp
--- a/menu/menu.cpp	Sat Apr 06 20:13:33 2019 +0000
+++ b/menu/menu.cpp	Mon Apr 08 14:41:57 2019 +0000
@@ -2,11 +2,14 @@
 #include "menu.h"
 #include "constants.h"
 #include "game.h"
+//#include "hud.h"
 
 const int total_options = 3;
 const float time_delay = 100;
 int high_score = 0;
 
+//Hud highScore;
+
 int cursor[84] = {
     0,0,0,0,1,0,0,0,0,0,1,1,
     0,0,1,1,1,1,0,0,0,1,0,0,
@@ -40,11 +43,13 @@
     }
 
     drawPointer();                              // Drawing pointer only ones.
+    //highScore.drawHighScore();
     
     if (high_score < game_score){
         high_score = game_score;
     }
     
+    //Dysplaies the higest score reached/
     char buffer[32];
     sprintf(buffer,"High Score %i",high_score);
     lcd.printString(buffer,0,0);
@@ -57,6 +62,7 @@
     if (gamepad.check_event(gamepad.A_PRESSED)){
         option_picked = true;
     }
+    gamepad.check_event(gamepad.A_PRESSED);
     return option_picked;
 }