gdxapp4d/demo4d-gdxapp-desktop/src/main/love/distributedrebirth/demo4d/desktop/DesktopLauncher.java

35 lines
1.3 KiB
Java
Raw Normal View History

2022-01-28 08:59:15 +00:00
package love.distributedrebirth.demo4d.desktop;
import java.util.Arrays;
import java.util.List;
import com.badlogic.gdx.Files.FileType;
2022-01-31 22:05:27 +00:00
import com.badlogic.gdx.Game;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
2022-02-04 17:04:15 +00:00
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
2022-01-28 11:00:59 +00:00
import love.distributedrebirth.demo4d.Demo4DMain;
import net.spookygames.gdx.nativefilechooser.desktop.DesktopFileChooser;
2022-01-28 08:59:15 +00:00
/**
2022-01-31 22:05:27 +00:00
* Desktop game app launcher.
*/
2022-02-04 17:04:15 +00:00
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
2022-01-28 08:59:15 +00:00
public class DesktopLauncher {
2022-01-31 22:05:27 +00:00
public static void main(String[] arg) {
DesktopConfig.printBootMessage();
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
config.setMaxNetThreads(Runtime.getRuntime().availableProcessors());
2022-01-31 22:05:27 +00:00
config.setTitle(DesktopConfig.WINDOW_TITLE);
config.setWindowIcon(FileType.Internal, DesktopConfig.WINDOW_ICONS);
config.setWindowedMode(DesktopConfig.WINDOW_WIDTH, DesktopConfig.WINDOW_HEIGHT);
List<String> args = Arrays.asList(arg);
DesktopFileChooser aop0 = new DesktopFileChooser();
Game app = new Demo4DMain(args, DesktopConfig.WINDOW_WIDTH, DesktopConfig.WINDOW_HEIGHT, aop0);
Lwjgl3Application launcher = new Lwjgl3Application(app, config);
launcher.exit();
2022-01-28 08:59:15 +00:00
}
}