How can I disable the popup screen that open every time you run something in jMonkeyEngine and just use the default settings instead?
1 Like
If it’s for JME3, in your main method do that :
public static void main(String[] args) {
Main app = new Main();
app.setShowSettings(false);
AppSettings settings = new AppSettings(true);
settings.put(“Width”, 1280);
settings.put(“Height”, 720);
settings.put(“Title”, “My awesome Game”);
settings.put(“VSync”, true)
//Anti-Aliasing
settings.put(“Samples”, 4);
app.setSettings(settings);
app.start();
}
That’s an exemple there are more parameters that can be changed.
Look into the AppSettings class for more of them.
4 Likes
Oh, thank you