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.
Diff: lib/GameEngine/GameEngine.cpp
- Revision:
- 31:06713cdbba37
- Parent:
- 21:1f44f5493c0d
- Child:
- 32:dca62ba807de
--- a/lib/GameEngine/GameEngine.cpp Thu May 09 00:49:37 2019 +0000 +++ b/lib/GameEngine/GameEngine.cpp Thu May 09 01:40:45 2019 +0000 @@ -43,13 +43,14 @@ } // Prints the gameover screen. Prints various text, including total player score. -void GameEngine::gameengine_score(Gamepad &pad, N5110 &lcd, Banana &banana) { +void GameEngine::gameengine_score(Gamepad &pad, N5110 &lcd, Banana &banana, HighScores &high) { lcd.clear(); lcd.printString("Game Over!",14,0); lcd.printString("Score:",0,2); char buffer[14]; // Shows final score on screen. sprintf(buffer,"%i",score); lcd.printString(buffer,40,2); + high.highscores_new(pad, lcd, banana); // Checks to see if new high score is obtained. lcd.refresh(); wait(5); } \ No newline at end of file