mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-31 11:11:38 +00:00
feat: ajout une classe pour les inits de base
This commit is contained in:
@@ -7,7 +7,8 @@ public class Main {
|
||||
});
|
||||
|
||||
Thread t = new Thread(() -> {
|
||||
while (true)
|
||||
int i = 0;
|
||||
while (i++ < 10)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -17,13 +18,12 @@ public class Main {
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println(Game.create().togglePause() ? "stop" : "fini");
|
||||
System.out.println(Game.getInstance().togglePause() ? "stop" : "fini" );
|
||||
}
|
||||
});
|
||||
|
||||
t.start();
|
||||
Game.create()
|
||||
.init(3, m)
|
||||
Game.getInstance()
|
||||
.run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user