mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-31 11:11:38 +00:00
feat: ajout impl Car et rework State et Game
This commit is contained in:
@@ -6,6 +6,11 @@ public class Main {
|
||||
{'9', '#', 'F'},
|
||||
});
|
||||
|
||||
Game game = new Game.Builder()
|
||||
.setMap(m)
|
||||
.setPlayers(3)
|
||||
.build();
|
||||
|
||||
Thread t = new Thread(() -> {
|
||||
int i = 0;
|
||||
while (i++ < 10)
|
||||
@@ -18,12 +23,11 @@ public class Main {
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println(Game.getInstance().togglePause() ? "stop" : "fini" );
|
||||
System.out.println(game.togglePause() ? "stop" : "fini" );
|
||||
}
|
||||
});
|
||||
|
||||
t.start();
|
||||
Game.getInstance()
|
||||
.run();
|
||||
game.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user