basic gameloop logic
This commit is contained in:
parent
b18d2619fa
commit
c00feab2c3
1 changed files with 21 additions and 17 deletions
|
@ -6,27 +6,31 @@ public class TamaGolemMain {
|
|||
public static void main(String[] args) {
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
System.out.println("TamaGolem");
|
||||
System.out.println("""
|
||||
Game game;
|
||||
|
||||
Player 1:
|
||||
Choose your name
|
||||
do {
|
||||
System.out.println("TamaGolem");
|
||||
System.out.println("""
|
||||
|
||||
""");
|
||||
Player 1:
|
||||
Choose your name
|
||||
|
||||
Player p1 = new Player(sc.nextLine());
|
||||
""");
|
||||
|
||||
System.out.println("""
|
||||
Player p1 = new Player(sc.nextLine());
|
||||
|
||||
Player 2:
|
||||
Choose your name
|
||||
System.out.println("""
|
||||
|
||||
""");
|
||||
Player 2:
|
||||
Choose your name
|
||||
|
||||
Player p2 = new Player(sc.nextLine());
|
||||
""");
|
||||
|
||||
Game game = new Game(p1, p2, WorldBuilder.buildWorld());
|
||||
Player p2 = new Player(sc.nextLine());
|
||||
|
||||
game.start();
|
||||
game = new Game(p1, p2, WorldBuilder.buildWorld());
|
||||
|
||||
game.start();
|
||||
} while (game.isRestart());
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue