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
Diff: Game/Game.cpp
- Revision:
- 20:ad13b0fdd8ff
- Parent:
- 19:1073cc64cb0b
- Child:
- 21:7d4827af00d6
diff -r 1073cc64cb0b -r ad13b0fdd8ff Game/Game.cpp
--- a/Game/Game.cpp Wed May 08 18:12:27 2019 +0000
+++ b/Game/Game.cpp Wed May 08 18:36:45 2019 +0000
@@ -60,8 +60,10 @@
void Game::death(N5110 &lcd, Gamepad &pad){
if (_lives == 0) {
lcd.clear();
- lcd.printString("YOU",30,2);
- lcd.printString("DIED",30,3);
+ lcd.printString("PUT",30,2);
+ lcd.printString("ON",30,3);
+ lcd.printString("TIMEOUT",30,3);
+ lcd.printString(":(",30,3);
lcd.refresh();
wait(1);
}
@@ -78,5 +80,5 @@
void Game::display_health(N5110 &lcd) {
char buffer[14];
sprintf(buffer,"%d",_lives);
- lcd.printString(buffer,2,5);
+ lcd.printString(buffer,0,5);
}
\ No newline at end of file