Time for action – make a big splash (screen)

By default, every game based on SimpleApplication presents the user with a built-in Select display settings dialog at the start of the game. This window lets the user specify the minimum set of display settings. The users can choose a screen resolution, color depth, vertical syncing, whether they want anti-aliasing, and whether they want to run the game in a window or in full-screen mode.

  1. Create an image file in PNG or JPG format with a recommended minimum width of 600 pixels. Name the file; for example, logo.png.
  2. Save logo.png to the assets/Interface/ directory.
  3. Load your custom splash screen into the settings:
    public static void main(String[] args) { AppSettings settings = new AppSettings(true); settings.setTitle("My ...

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.