Started main menu
This commit is contained in:
@@ -1,5 +1,33 @@
|
||||
package main;
|
||||
|
||||
import java.util.Scanner;
|
||||
|
||||
public class MainMenu {
|
||||
|
||||
private boolean selecting;
|
||||
|
||||
public MainMenu() {
|
||||
|
||||
@SuppressWarnings("resource")
|
||||
Scanner s = new Scanner(System.in);
|
||||
|
||||
selecting = true;
|
||||
while (selecting) {
|
||||
printTitleScreen();
|
||||
String in = s.next();
|
||||
while (!in.equals("8") && !in.equals("2")) {
|
||||
in = s.next();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void printTitleScreen() {
|
||||
System.out.println(" _____ _ _____ _____ ");
|
||||
System.out.println("|_ _|_|___ |_ _|___ ___ |_ _|___ ___ ");
|
||||
System.out.println(" | | | | _| | | | .'| _| | | | . | -_|");
|
||||
System.out.println(" |_| |_|___| |_| |__,|___| |_| |___|___|");
|
||||
System.out.println();
|
||||
System.out.println("(Use 8 & 2 to move)");
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user