Mortal Kombat Game ELEC2645

Dependencies:   mbed N5110 ShiftReg Joystick

Revision:
11:b344a64b75bf
Parent:
10:e83899f11e8a
Child:
15:7fd2d34f3be5
--- a/Fighter.cpp	Fri Apr 23 23:49:10 2021 +0000
+++ b/Fighter.cpp	Sat Apr 24 00:00:14 2021 +0000
@@ -304,19 +304,7 @@
         if (buttonC.read() == 1) {       // we use while not if here because user would hold to guard
             guard(lcd);  // draw kick on same coordinates as the sprite
         }
-        /*
-        if (buttonD.read() == 1) {       // code for fighter to jump while running
-            add_y(-13);        // temporarily increase y coordinates
-            add_x(10);         // increment by 10
-            move_right(lcd);
-            wait(0.15);
-            lcd.refresh();
-            add_y(13);        // return back to ground
-            draw(lcd);
-            wait(0.15);
-            lcd.refresh();
-        }
-        */
+        
     }
     else if(x > 0.52) { // joystick moved to the left
         add_x(-4);      // decrement left by 5
@@ -337,20 +325,5 @@
         if (buttonC.read() == 1) {
             guard(lcd);  
         }
-        /*
-        if (buttonD.read() == 1) {       // code for fighter to jump while running
-            add_y(-13);        // temporarily increase y coordinates
-            add_x(-10);         // decrement by 10
-            move_left(lcd);
-            wait(0.15);
-            lcd.refresh();
-            add_y(13);        // return back to ground
-            draw(lcd);
-            wait(0.15);
-            lcd.refresh();
-        }
-        */
     }
-    // lcd.refresh();
-    // wait(0.2);
 }
\ No newline at end of file