FINAL VERSION

Dependencies:   mbed

Revision:
118:a44365bf061a
Parent:
117:4eedd15f2c3d
Child:
120:33dabf094a6d
--- a/main.cpp	Wed May 08 13:57:45 2019 +0000
+++ b/main.cpp	Wed May 08 14:20:26 2019 +0000
@@ -150,6 +150,9 @@
             pad.tone(750.0,0.3);
             wait(0.1);
         }
+        if (pad.check_event(Gamepad::X_PRESSED) & pad.check_event(Gamepad::Y_PRESSED)) {
+            save_hi_score(0);  // resets hi score
+        }
         //printf("Pointer 1 = %d",pointer);
 
     }