Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
60:d3a9e0e4a0de
Parent:
59:c65a2e933c47
Child:
61:f3c402bc2ad0
diff -r c65a2e933c47 -r d3a9e0e4a0de MenuClasses/StartScreen/StartScreen.cpp
--- a/MenuClasses/StartScreen/StartScreen.cpp	Mon Apr 29 12:09:31 2019 +0000
+++ b/MenuClasses/StartScreen/StartScreen.cpp	Mon Apr 29 14:40:42 2019 +0000
@@ -1,5 +1,4 @@
 #include "StartScreen.h"
-Settings settings;
 
 int sprite[48][84] = {
     {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
@@ -249,7 +248,7 @@
         break;
     case 24:
         float *cs_sc;
-        cs_sc = settings.Implement(lcd, pad, cs);
+        cs_sc = _settings.Implement(lcd, pad, cs);
         cs = cs_sc[0]; //saves the number in cs which controls the control speed of the menu oftions (basically the wait time of between reading joystick input).
         sc = cs_sc[1]; //saves the number in sc which decides weather or not to show credits when game starts.
         main_menu(lcd, pad); //to return to main_menu if back is pressed
@@ -258,7 +257,8 @@
         _stats.StatsDisplay(lcd, pad);
         main_menu(lcd, pad); //to return to main_menu if back is pressed
         break;
-    default:
+    case 40:
+        _tutorial.Implement(lcd, pad);
         main_menu(lcd, pad); //to return to main_menu if back is pressed
         break;
     }