Ikenna Adrian Ozoemena 201157039

Dependencies:   mbed

Revision:
13:e114d362186d
Parent:
12:47578eb9ea73
Child:
14:88ca5b1a111a
--- a/main.cpp	Wed Apr 10 11:01:19 2019 +0000
+++ b/main.cpp	Wed Apr 10 12:04:07 2019 +0000
@@ -36,10 +36,10 @@
 
     while(1) {
         welcome();
-        printf("ycursor = %d",rosen.get_cursor());
+        //printf("ycursor = %d",rosen.get_ycursor());
         // make it so it works with get_cursor = 16;
 
-        if(rosen.get_cursor() == 16) {
+        if(rosen.get_ycursor() == 16) {
             while ( pad.check_event(Gamepad::BACK_PRESSED) == false) {
                 // printf("play...\n");
                 rosen.read_input(pad);
@@ -48,12 +48,13 @@
                 wait(1.0f/fps);
             }
         }
-        if(rosen.get_cursor() == 24) {
+        if(rosen.get_ycursor() == 24) {
             while ( pad.check_event(Gamepad::BACK_PRESSED) == false) {
                 rosen.read_input(pad);
                 rosen.update(pad);
                 ship_select();
                 wait(1.0f/fps);
+                printf("ship = %d\n",rosen.get_xcursor());
                 // printf("menu...\n");
             }
         }