Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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();
+// }