Mortal Kombat Game ELEC2645
Dependencies: mbed N5110 ShiftReg Joystick
Diff: Menu.cpp
- Revision:
- 22:225d4031c090
- Parent:
- 21:fad1c9f010d1
--- a/Menu.cpp Sat May 08 00:09:54 2021 +0000 +++ b/Menu.cpp Sun May 09 12:31:38 2021 +0000 @@ -6,6 +6,7 @@ Menu::Menu() {} void Menu::menu_render(N5110 &lcd) { + // this function renders all the tutorial screens and creates a countdown to the fight draw_uni_logo(lcd); wait(3.0f); main_menu(lcd); @@ -25,7 +26,7 @@ tutorial_screen7(lcd); wait(3.0f); tutorial_screen8(lcd); - wait(3.0f); + wait(1.5f); shift.write(0x4F); wait(1.0f); shift.write(0x5B); @@ -121,6 +122,7 @@ lcd.printString("Press A", 18,1); lcd.printString("to Kick!", 14,2); lcd.drawRect(0,0,84,48,FILL_TRANSPARENT); + // setting coordinates _fighter.set_y(34); _fighter.set_x(34); _fighter.kick_right(lcd); @@ -162,10 +164,7 @@ void Menu::tutorial_screen8 (N5110 &lcd) { lcd.clear(); - lcd.printString("Your fight", 8,1); - lcd.printString("will be",12 ,2); - lcd.printString("in Hyde Park", 8,3); - lcd.printString("Get Ready...", 8,4); + lcd.printString("Get Ready...", 8,2); lcd.drawRect(0,0,84,48,FILL_TRANSPARENT); lcd.refresh(); } @@ -228,8 +227,8 @@ {1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,1,1,1,1,0,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,1,1,0,1,0,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,1,1,0,1,0,0,0,0,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,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