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: main/main.cpp
- Revision:
- 21:0eb394495b8a
- Parent:
- 20:557e84189a57
- Child:
- 23:240bc00ef25b
--- a/main/main.cpp Tue Mar 26 10:52:53 2019 +0000
+++ b/main/main.cpp Wed Mar 27 00:00:32 2019 +0000
@@ -8,6 +8,7 @@
Date: start - 25/02/2019
*/
+#include "constants.h"
#include "main.h"
#include "game.h"
@@ -80,29 +81,6 @@
current_screen = menu.getCurrentScreenSelection();
}
}
- bool game_over = game.checkGameOver();
- if (game_over){
- lcd.clear();
- lcd.printString("GameOver",0,1);
- lcd.refresh();
- wait(1);
- lcd.printString("Press Y",0,4);
- lcd.printString("to restart",0,5);
- lcd.refresh();
- bool led_state = false;
- while (!gamepad.check_event(gamepad.Y_PRESSED)){//////////////////////////////
- gamepad.led(1,(float)led_state);
- gamepad.led(2,(float)!led_state);
- gamepad.led(3,(float)led_state);
- gamepad.led(4,(float)!led_state);
- gamepad.led(5,(float)led_state);
- gamepad.led(6,(float)!led_state);
- wait(0.5);
- led_state = !led_state;
- }
- //game.gameValuesInit();
- current_screen = ScreenOption_Menu;
- }
lcd.refresh();
wait_ms(1000/fps);
@@ -163,11 +141,5 @@
}
while (!gamepad.check_event(gamepad.START_PRESSED)){
}
- /*lcd.printString(" StarBarians",1,1);
- lcd.refresh();
- wait(0.5);
- lcd.printString(" And the quest ",1,2);
- lcd.printString(" of the Princess Spacecate",1,3);
- lcd.printString(" Spacecate",1,4);*/
}
\ No newline at end of file
