Ikenna Adrian Ozoemena 201157039
Dependencies: mbed
Diff: Lore/Lore.cpp
- Revision:
- 53:3fdc4486f672
- Parent:
- 51:2231e2e141b9
--- a/Lore/Lore.cpp Thu May 09 13:22:45 2019 +0000 +++ b/Lore/Lore.cpp Thu May 09 14:52:52 2019 +0000 @@ -63,6 +63,14 @@ { } +void Lore::help(N5110 &lcd) +{ + // display help + lcd.clear(); + lcd.refresh(); + ships1(lcd); + lcd.refresh(); +} void Lore::display(N5110 &lcd,int rand) { // set the output to be a random number between 0 and 6 @@ -91,7 +99,7 @@ break; } lcd.refresh(); - wait(10); + wait(3); } @@ -150,6 +158,16 @@ lcd.printString(" for certain ",2,4); lcd.printString(" tasks. ",2,5); } + +void Lore::ships1(N5110 &lcd) +{ + lcd.printString("You have a",2,0); + lcd.printString("choice of ",2,1); + lcd.printString("three ships,",2,2); + lcd.printString(" press a to ",2,3); + lcd.printString("fire weapons ",2,4); +} + void Lore::intro(N5110 &lcd) { lcd.clear();