Snake vs Block Game to be run upon K64F.

Dependencies:   mbed

Revision:
15:f4d069da093d
Parent:
9:d1d79d4ee673
Child:
16:7b474f873683
--- a/StartScreen/StartScreen.cpp	Thu Apr 04 06:53:14 2019 +0000
+++ b/StartScreen/StartScreen.cpp	Thu Apr 04 18:50:40 2019 +0000
@@ -238,13 +238,14 @@
     ani+=3;
     lcd.refresh();
     pad.tone(370,0.1);
-    wait(0.6);
+    wait(0.2);
     pad.leds_off();
     lcd.clear();
 }
 
 void StartScreen::instruct(N5110 &lcd, Gamepad &pad)
 {
+    wait(1/cs);
     lcd.printString("Please Press",5,1); //Function used to promt the user to start.
     lcd.printString("Start",25,3);
     lcd.printString("to Begin",15,5);
@@ -276,6 +277,7 @@
 void StartScreen::menu_screen1(N5110 &lcd, Gamepad &pad)
 {
     lcd.clear();
+    wait(1/cs);
     lcd.drawSprite(50,i,7,9,(int *)arrow);
     while ((pad.check_event(Gamepad::JOY_PRESSED) == false)&&(pad.check_event(Gamepad::START_PRESSED) == false)) {  //Change this to if button pressed.
         lcd.printString("SnakeVSBlock",5,0);