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: GameEngine/GameEngine.cpp
- Revision:
- 15:658f1216ee84
- Parent:
- 14:cf4a32245152
- Child:
- 16:106c27d03402
--- a/GameEngine/GameEngine.cpp Sun May 06 16:17:41 2018 +0000
+++ b/GameEngine/GameEngine.cpp Mon May 07 13:29:49 2018 +0000
@@ -164,6 +164,8 @@
time.stop ();
return gameOver;
}
+
+
void GameEngine::reset_gameOver(){
//rest time and game over value to play again
@@ -171,6 +173,7 @@
gameOver=0;
}
+
void GameEngine::time_increment()
{
//start and incrementing the time and read it