Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: GameEngine/WinLoose/WinLoose.cpp
- Revision:
- 61:f3c402bc2ad0
- Parent:
- 59:c65a2e933c47
- Child:
- 62:ebf6ecf8a6d5
--- a/GameEngine/WinLoose/WinLoose.cpp Mon Apr 29 14:40:42 2019 +0000 +++ b/GameEngine/WinLoose/WinLoose.cpp Tue Apr 30 08:32:30 2019 +0000 @@ -18,6 +18,7 @@ lcd.printString("Press Start",10,3); lcd.printString("to Proceed",12,4); lcd.refresh(); + wait(0.1); while (pad.check_event(Gamepad::START_PRESSED) == false) { pad.leds_on(); pad.tone(rand()%1001,0.1); //helps to set max freq for random sound @@ -41,7 +42,7 @@ void WinLoose::GameOver(N5110 &lcd, Gamepad &pad) { - pad.init(); + //pad.init(); while ((pad.check_event(Gamepad::BACK_PRESSED) == false)) { lcd.clear(); lcd.printString("Game",33,1);