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.
Create an image file in PNG or JPG format with a recommended minimum width of 600 pixels. Name the file; for example,
logo.png
.Save
logo.png
to theassets/Interface/
directory.Load your custom splash screen into the settings:
public static void main(String[] args) { AppSettings settings = new AppSettings(true); settings.setTitle("My Cool Game"); settings.setSettingsDialogImage("Interface/logo.png"); SettingsTest app = new SettingsTest(); app.setSettings(settings); app.start(); }
When you start the application now, the splash screen shows...