mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-28 18:03:50 +00:00
fix(Main.java): regarde si il a un serveur d'affichage
- problemes futur sans x11
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
|
import java.awt.GraphicsEnvironment;
|
||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) throws InterruptedException
|
public static void main(String[] args) throws InterruptedException
|
||||||
|
{
|
||||||
|
if (!GraphicsEnvironment.isHeadless())
|
||||||
{
|
{
|
||||||
Integer[][] map = new Integer[][]
|
Integer[][] map = new Integer[][]
|
||||||
{
|
{
|
||||||
@@ -27,4 +30,5 @@ public class Main {
|
|||||||
.build();
|
.build();
|
||||||
game.run();
|
game.run();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user