2022-02-04 17:44:02 +00:00
|
|
|
package love.distributedrebirth.gdxapp.desktop;
|
2022-01-28 08:59:15 +00:00
|
|
|
|
2022-01-28 09:32:01 +00:00
|
|
|
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;
|
2022-01-28 09:32:01 +00:00
|
|
|
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-02-04 17:44:02 +00:00
|
|
|
import love.distributedrebirth.gdxapp.Demo4DMain;
|
2022-01-28 09:32:01 +00:00
|
|
|
import net.spookygames.gdx.nativefilechooser.desktop.DesktopFileChooser;
|
2022-01-28 08:59:15 +00:00
|
|
|
|
2022-01-29 04:50:02 +00:00
|
|
|
/**
|
2022-01-31 22:05:27 +00:00
|
|
|
* Desktop game app launcher.
|
2022-01-29 04:50:02 +00:00
|
|
|
*/
|
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-28 09:32:01 +00:00
|
|
|
|
2022-01-31 22:05:27 +00:00
|
|
|
public static void main(String[] arg) {
|
|
|
|
DesktopConfig.printBootMessage();
|
2022-01-28 09:32:01 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|