Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
11:d6ceff1ff6d7
Parent:
9:d1d79d4ee673
Child:
16:7b474f873683
--- a/main.cpp	Sat Mar 30 17:09:18 2019 +0000
+++ b/main.cpp	Sat Mar 30 21:42:28 2019 +0000
@@ -28,6 +28,7 @@
 FXOS8700CQ device(I2C_SDA,I2C_SCL);
 StartScreen _start;
 SnakevsBlock game;
+AnalogIn noisy(PTB0);
 
 ///////////// prototypes //////////////
 void init();
@@ -69,7 +70,7 @@
     pad.init();
     pad.tone(1000.0,0.1);
     game.init();
-
+    srand(100000*noisy.read());
 }
 
 void refresh_game()
@@ -78,5 +79,4 @@
     game.draw(lcd, pad);
     game.get_pos();
     lcd.refresh();
-
 }
\ No newline at end of file