Kaif Kutchwala 201267448 ELEC2645 Project

Dependencies:   mbed

Revision:
20:c697902b844f
Parent:
19:074443a8c89b
Child:
21:d5b1160f349f
--- a/main.cpp	Fri May 22 23:51:06 2020 +0000
+++ b/main.cpp	Sun May 24 17:40:56 2020 +0000
@@ -89,11 +89,12 @@
     lcd.clear();
     lcd.printString("GAME OVER",15,2);
     lcd.refresh();
+    game.playGoalSound(3);
     wait(2);
     pad.reset_buttons(); //to ensure no accidental selection on menu
 }
 void how_to() {
-    _pad->leds(0.0);
+    pad.leds(0.0);
     if(pad.get_direction() == N) {
        page--;
     } else if (pad.get_direction() == S || page == 3 || page == 4) {