![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: Snake/Snake.cpp
- Revision:
- 44:cd10d07ea1e5
- Parent:
- 43:233f93860d08
diff -r 233f93860d08 -r cd10d07ea1e5 Snake/Snake.cpp --- a/Snake/Snake.cpp Thu Apr 25 18:12:17 2019 +0000 +++ b/Snake/Snake.cpp Thu Apr 25 21:43:07 2019 +0000 @@ -40,18 +40,6 @@ m = m+1; } //printf("SPRITE %d %d \n", _x[0], _y[0]); - if(_length == 0) { - pad.init(); - while ((pad.check_event(Gamepad::BACK_PRESSED) == false)) { - lcd.clear(); - lcd.printString("Game",33,1); - lcd.printString("Over",33,3); - lcd.printString("Press Back",14,5); //Function used to promt the user to Restart. - lcd.refresh(); - wait(0.1); - } - NVIC_SystemReset(); //Software Reset. //change this condition to loosing screen. - } for(int a=1; a<=10; a++) { if(_length == a) {