Josh Davy / Mbed OS Flip_OS_5

Dependencies:   el17jd

Revision:
6:2ca1516ec1e2
Parent:
5:b9cf407bcc63
Child:
7:68e06dda79f7
--- a/main.cpp	Sat Apr 06 14:42:34 2019 +0000
+++ b/main.cpp	Wed Apr 10 11:03:07 2019 +0000
@@ -93,16 +93,18 @@
     // game loop - read input, update the game state and render the display
     while (1) {
         processedTime.start();
-        //printf("TIME: %i\n",processedTime.read_ms());
+        printf("TIME: %i\n",processedTime.read_ms());
 //
-//        game.read_input(pad);
-//        game.update(pad);
-//        game.draw(lcd);
-//        wait(0.1);
-        if (processedTime.read_us() > 125) {
-                player.play_next();
-                processedTime.reset();
-            }
+        game.read_input(pad);
+        game.update(pad);
+        game.draw(lcd);
+        wait(0.1);
+        
+        
+//        if (processedTime.read_us() > 125) {
+//                player.play_next();
+//                processedTime.reset();
+//            }