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:
- 11:b288d01533cc
- Parent:
- 10:28575a6eaa13
- Child:
- 12:50a7abf21f18
diff -r 28575a6eaa13 -r b288d01533cc lib/GameEngine/GameEngine.cpp --- a/lib/GameEngine/GameEngine.cpp Tue May 07 22:49:13 2019 +0000 +++ b/lib/GameEngine/GameEngine.cpp Tue May 07 23:01:46 2019 +0000 @@ -19,8 +19,8 @@ void GameEngine::gameengine_run(Gamepad &pad, N5110 &lcd, Barrel &barrel, Banana &banana, Donkey &dky) { wait_ms(250); - barrel.running = 1; - while (barrel.running == 1 || (pad.check_event(Gamepad::BACK_PRESSED) == false)) { + running = 1; + while (running == 1 || (pad.check_event(Gamepad::BACK_PRESSED) == false)) { //printf("Game State"); lcd.clear(); lcd.printString("Game",0,0); @@ -30,4 +30,4 @@ lcd.refresh(); wait_ms(1.0f/24); } -} +} \ No newline at end of file