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