Time for action – configuring display settings

In order to control the display settings yourself, you need to create an AppSettings object in your application's main() method. Set the Boolean in the AppSettings constructor to true, if you want to keep the default settings for every value that you do not specify. You can set this parameter to false if you want to specify each property yourself. The engine will then raise an exception if you miss a setting.

public static void main(String[] args) {
  settings.setTitle("My Cool Game");
  // specify your settings here
  Main app = new Main();
  app.setSettings(settings); // apply settings to app
  app.start();               // use settings and run
}

The following application settings are available:

  • Dialog image: If you choose ...

Get jMonkeyEngine 3.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.