chore: switched to lwjgl3
This commit is contained in:
parent
f221aa639d
commit
eec9ee040e
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"java.configuration.updateBuildConfiguration": "interactive"
|
||||
}
|
|
@ -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"
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
||||
config.useVsync(true);
|
||||
config.setForegroundFPS(120);
|
||||
config.setWindowedMode(1600, 900);
|
||||
config.setDecorated(false);
|
||||
|
||||
new Lwjgl3Application(new SagittariusGame(), config);
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue