mirror of
https://github.com/guezoloic/L3-racing-game.git
synced 2026-03-31 04:11:33 +00:00
29 lines
518 B
Java
29 lines
518 B
Java
public class Main {
|
|
public static void main(String[] args) throws InterruptedException {
|
|
Map m = Map.fromChars(new Character[][] {
|
|
{'3', '#', '2'},
|
|
{'#', ' ', 'S'},
|
|
{'9', '#', 'F'},
|
|
});
|
|
|
|
Thread t = new Thread(() -> {
|
|
while (true)
|
|
{
|
|
try
|
|
{
|
|
Thread.sleep(5000);
|
|
}
|
|
catch (InterruptedException e)
|
|
{
|
|
e.printStackTrace();
|
|
}
|
|
System.out.println(Game.create().togglePause() ? "stop" : "fini");
|
|
}
|
|
});
|
|
|
|
t.start();
|
|
Game.create()
|
|
.init(3, m)
|
|
.run();
|
|
}
|
|
} |