Converted to maven
This commit is contained in:
parent
0f33a5a77e
commit
9afa43331a
327 changed files with 396 additions and 500 deletions
28
gdxapp4d-boot/gdxapp4d-boot-desktop/pom.xml
Normal file
28
gdxapp4d-boot/gdxapp4d-boot-desktop/pom.xml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>love.distributedrebirth.gdxapp4d</groupId>
|
||||
<artifactId>gdxapp4d-boot</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>gdxapp4d-boot-desktop</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>love.distributedrebirth.gdxapp4d</groupId>
|
||||
<artifactId>gdxapp4d-boot-tos4</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.badlogicgames.gdx</groupId>
|
||||
<artifactId>gdx-backend-lwjgl3</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.badlogicgames.gdx</groupId>
|
||||
<artifactId>gdx-platform</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>games.spooky.gdx</groupId>
|
||||
<artifactId>gdx-nativefilechooser-desktop</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package love.distributedrebirth.gdxapp.desktop;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
|
||||
/**
|
||||
* Desktop game app base config.
|
||||
*/
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public final class GDXAppDesktopConfig {
|
||||
|
||||
public static int WINDOW_WIDTH = 1024;
|
||||
public static int WINDOW_HEIGHT = 768;
|
||||
public static String WINDOW_TITLE = "GDXApp⁴ᴰ";
|
||||
public static String[] WINDOW_ICONS = {
|
||||
"icon/window-128.png",
|
||||
"icon/window-32.png",
|
||||
"icon/window-16.png"
|
||||
};
|
||||
|
||||
public static void printBootMessage() {
|
||||
System.out.println("==========================");
|
||||
System.out.println(" @Ω仙⁴ ˧꜏⋇꜊꜔ ⁴ﷲΩ@ ");
|
||||
System.out.println(" ©Δ∞ 仙上主天 ");
|
||||
System.out.println("בְּרֵאשִׁית :o: יְסוֺד :o: יִשְׂרָאֵל");
|
||||
System.out.println("==========================");
|
||||
System.out.println("..Welcome to: Thy Matrix..");
|
||||
System.out.println("..Starting GDXApp⁴ᴰ now;..");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package love.distributedrebirth.gdxapp.desktop;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import com.badlogic.gdx.Files.FileType;
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application;
|
||||
import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.gdxapp.GDXAppMain;
|
||||
import net.spookygames.gdx.nativefilechooser.desktop.DesktopFileChooser;
|
||||
|
||||
/**
|
||||
* Desktop game app launcher.
|
||||
*/
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class GDXAppDesktopLauncher {
|
||||
|
||||
public static void main(String[] arg) {
|
||||
GDXAppDesktopConfig.printBootMessage();
|
||||
|
||||
int width = GDXAppDesktopConfig.WINDOW_WIDTH;
|
||||
int height = GDXAppDesktopConfig.WINDOW_HEIGHT;
|
||||
GDXAppMain.INSTANCE.BãßInit(Arrays.asList(arg), width, height, new DesktopFileChooser());
|
||||
|
||||
Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();
|
||||
config.setMaxNetThreads(Runtime.getRuntime().availableProcessors());
|
||||
config.setTitle(GDXAppDesktopConfig.WINDOW_TITLE);
|
||||
config.setWindowIcon(FileType.Internal, GDXAppDesktopConfig.WINDOW_ICONS);
|
||||
config.setWindowedMode(width, height);
|
||||
|
||||
Lwjgl3Application launcher = new Lwjgl3Application(GDXAppMain.INSTANCE, config);
|
||||
launcher.exit();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue