diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index fb305d5..8e0b265 100644 --- a/build.gradle +++ b/build.gradle @@ -43,7 +43,7 @@ project(":desktop") { dependencies { implementation project(":core") - api "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion" + api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion" api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop" } diff --git a/desktop/src/bzh/fainsin/sagittarius/desktop/DesktopLauncher.java b/desktop/src/bzh/fainsin/sagittarius/desktop/DesktopLauncher.java index c796784..5a3299f 100644 --- a/desktop/src/bzh/fainsin/sagittarius/desktop/DesktopLauncher.java +++ b/desktop/src/bzh/fainsin/sagittarius/desktop/DesktopLauncher.java @@ -1,12 +1,19 @@ -package bzh.fainsin.sagittarius.desktop; +package bzsh.fainsin.sagittarius.desktop; -import com.badlogic.gdx.backends.lwjgl.LwjglApplication; -import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration; -import bzh.fainsin.sagittarius.SagittariusGame; +import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application; +import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration; +import bzsh.fainsin.sagittarius.SagittariusGame; public class DesktopLauncher { - public static void main (String[] arg) { - LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); - new LwjglApplication(new SagittariusGame(), config); + public static void main(String[] arg) { + + Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration(); + config.useVsync(true); + config.setForegroundFPS(120); + config.setWindowedMode(1600, 900); + config.setDecorated(false); + + new Lwjgl3Application(new SagittariusGame(), config); + } -} +} \ No newline at end of file