Mortal Kombat Game ELEC2645
Dependencies: mbed N5110 ShiftReg Joystick
Diff: main.cpp
- Revision:
- 14:7f23841685ad
- Parent:
- 12:b4477a312158
- Child:
- 18:22bda659c70a
diff -r eaf070d5f599 -r 7f23841685ad main.cpp --- a/main.cpp Sun Apr 25 15:04:06 2021 +0000 +++ b/main.cpp Mon Apr 26 22:19:28 2021 +0000 @@ -142,13 +142,11 @@ // kick if user presses button A if (buttonA.read() == 1) { enemy.kick_left(lcd); - lcd.refresh(); - wait(0.3); + } if (buttonB.read() == 1) { enemy.sword_left(lcd); // draw kick on same coordinates as the sprite - lcd.refresh(); - wait(0.3); + } } }