Adam Baker 201166301

Dependencies:   mbed Gamepad N5110

Revision:
20:54724f686c14
Parent:
19:48d49a42037c
Child:
21:f82573f3e40e
diff -r 48d49a42037c -r 54724f686c14 main.cpp
--- a/main.cpp	Mon Apr 08 12:32:19 2019 +0000
+++ b/main.cpp	Mon Apr 08 18:55:49 2019 +0000
@@ -74,26 +74,26 @@
             move = runner.runnerState(move, lcd, speed); //what state runner is in (must come after next level
 
             //runner.whatLevel(move, lcd); // call level(why again)??
-            d = runner.onPlatformCheck(move, pos);
+            d = runner.onVerCheck(move, pos);
             
-            r = runner.byPlatformCheckRight(move, pos);
+            r = runner.byVerCheckRight(move, pos);
             
-            l = runner.byPlatformCheckLeft(move, pos);
+            l = runner.byVerCheckLeft(move, pos);
             
-            d2 = runner.onPlatform2Check(move, pos);
+            d2 = runner.onVer2Check(move, pos);
                         
-            r2 = runner.byPlatform2CheckRight(move, pos);
+            r2 = runner.byVer2CheckRight(move, pos);
             
-            l2 = runner.byPlatform2CheckLeft(move, pos);
+            l2 = runner.byVer2CheckLeft(move, pos);
             
             move = runner.onPlatform(lcd, move, d, r, l, d2, r2, l2);
 
 
             char buffer[14];
-            sprintf(buffer,"%i %i %i %i %i" ,pos.x, pos.y, pos.d2, pos.c2, pos.l2);
+            sprintf(buffer,"%i %i %i %i %i" ,pos.x, pos.y, pos.d, pos.c, pos.l);
             lcd.printString(buffer,0,0);
             char buffer1[14];
-            sprintf(buffer1,"%i %i %i",d2, r2, l2);
+            sprintf(buffer1,"%i %i %i %i %i",pos.vx, pos. vy, pos.vd, pos.vc, pos.vl);
             lcd.printString(buffer1,0,1);
 
             //sleep(); //sleep untill next refresh