Add MdgaApp.java and run config
This commit is contained in:
22
Projekte/mdga/client/build.gradle
Normal file
22
Projekte/mdga/client/build.gradle
Normal file
@@ -0,0 +1,22 @@
|
||||
plugins {
|
||||
id 'buildlogic.jme-application-conventions'
|
||||
}
|
||||
|
||||
description = 'mdga client'
|
||||
|
||||
dependencies {
|
||||
implementation project(":jme-common")
|
||||
implementation project(":mdga:model")
|
||||
|
||||
implementation libs.jme3.desktop
|
||||
|
||||
runtimeOnly libs.jme3.awt.dialogs
|
||||
runtimeOnly libs.jme3.plugins
|
||||
runtimeOnly libs.jme3.jogg
|
||||
runtimeOnly libs.jme3.testdata
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'pp.mdga.client.MdgaApp'
|
||||
applicationName = 'mdga'
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import com.jme3.system.JmeContext;
|
||||
|
||||
public class MdgaApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setCenterWindow(true);
|
||||
settings.setWidth(1920);
|
||||
settings.setHeight(1080);
|
||||
|
||||
MdgaApp app = new MdgaApp();
|
||||
app.setSettings(settings);
|
||||
app.setShowSettings(false);
|
||||
|
||||
app.start(JmeContext.Type.Display);
|
||||
}
|
||||
|
||||
public void simpleInitApp() {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user