Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Menu/Menu.cpp
- Revision:
- 19:f35887b14c23
- Parent:
- 18:304700b5d8f8
- Child:
- 20:a8cad4e044ea
--- a/Menu/Menu.cpp Fri Apr 12 11:30:25 2019 +0000 +++ b/Menu/Menu.cpp Mon Apr 15 18:49:35 2019 +0000 @@ -93,10 +93,14 @@ } void Menu::display_controls(N5110 &lcd, Gamepad &gamepad) { + lcd.drawLine(0,0,84,0,FILL_BLACK); + lcd.drawLine(0,6,84,6,FILL_BLACK); + lcd.drawLine(0,32,84,32,FILL_BLACK); + lcd.drawLine(0,38,84,38,FILL_BLACK); lcd.printString("JOYSTICK:",0,0); lcd.printString("-Move left",0,1); lcd.printString("-Move right",0,2); - lcd.printString("-Duck",0,3); + lcd.printString("-Move down",0,3); lcd.printString("A:",0,4); lcd.printString("-Jump (back)",0,5); } @@ -104,7 +108,9 @@ void Menu::display_menu(N5110 &lcd, Gamepad &gamepad) { // Displays the menu and resets the controller to ensure a new game is // ready to start when the state is switched to run game. - _controller.init(); + lcd.drawLine(0,0,84,0,FILL_BLACK); + lcd.drawLine(0,6,84,6,FILL_BLACK); + lcd.drawLine(0,24,84,24,FILL_BLACK); lcd.printString("SKATER",24,0); lcd.printString("START- Play!",0,1); lcd.printString("X- Controls",0,2);