Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of el17dg by
Diff: menu/menu.cpp
- Revision:
- 27:f05f4e738ba9
- Parent:
- 26:676874c42883
- Child:
- 28:35af3843de8f
--- 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;
}
