![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/StartScreen/StartScreen.cpp
- Revision:
- 80:51ca38c5dcdf
- Parent:
- 76:7fa91122907f
- Child:
- 83:329da564799a
--- a/MenuClasses/StartScreen/StartScreen.cpp Sun May 05 23:48:57 2019 +0000 +++ b/MenuClasses/StartScreen/StartScreen.cpp Mon May 06 08:00:56 2019 +0000 @@ -222,7 +222,7 @@ } else { _backPressed = false; } - return _backPressed; //returns 1 if back is pressed, returns 0 otherwise. + return _backPressed; //returns true if back is pressed, returns false otherwise. } void StartScreen::menu(N5110 &lcd, Gamepad &pad) @@ -313,7 +313,7 @@ pad.tone(1000.0,0.1); if(_backPressed) { //if back was pressed in the while loop, the previous menu is called. - menu(lcd, pad); + StartScreen::menu(lcd, pad); } } @@ -383,7 +383,7 @@ pad.tone(1000.0,0.1); if(_backPressed) { //if back was pressed in the while loop, the previous menu is called. - menu(lcd, pad); //To go back to Menu if back is pressed. + StartScreen::menu(lcd, pad); //To go back to Menu if back is pressed. } }