// JMonkey-Loglevel auf INFO+1
Logger.getLogger("").setLevel(Level.SEVERE);
SerializerRegistrationInitializer.registerClasses();
AppSettings settings = new AppSettings(true);
boolean fullscreen = ResourceConstants
.getBoolProp(ResourceConstants.CLIENT_FULLSCREEN);
int width, height;
if (fullscreen) {
settings.setFullscreen(fullscreen);
Dimension resolution = Toolkit.getDefaultToolkit().getScreenSize();
width = resolution.width;
height = resolution.height;
} else {
width = ResourceConstants
.getIntProp(ResourceConstants.CLIENT_RESOLUTION_WIDTH);
height = ResourceConstants
.getIntProp(ResourceConstants.CLIENT_RESOLUTION_HEIGHT);
}
settings.setResolution(width, height);
GameApplication gameApp = new GameApplication(settings, false);
gameApp.setInitCallback(getInitCallback(gameApp));
gameApp.start();
}