Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
6:3ffab44ed49c
Parent:
3:fbb1fa853f09
Child:
7:48ba87cd79b5
--- a/main.cpp	Wed Mar 20 11:41:18 2019 +0000
+++ b/main.cpp	Sat Mar 23 15:07:15 2019 +0000
@@ -14,6 +14,13 @@
 #include "N5110.h"
 #include "FXOS8700CQ.h"
 #include "StartScreen.h"
+//#include "SnakevsBlock.h"
+
+/////////////// structs /////////////////
+struct UserInput {
+    Direction d;
+    float mag;
+};
 
 /////////////// objects ///////////////
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
@@ -25,6 +32,7 @@
 ///////////// prototypes ///////////////
 void init();
 void refresh_game();
+//void update_game(UserInput input);
 
 //Constants//
 int fps = 7;  // frames per second
@@ -59,12 +67,15 @@
     // need to initialise LCD and Gamepad 
     lcd.init();
     pad.init();
+    pad.tone(1000.0,0.1);
+    //game.init();
 
 }
 
 void refresh_game()
 {
     lcd.clear();  
+    //game.draw(lcd, pad);
     lcd.refresh();
 
 }
\ No newline at end of file