-
Notifications
You must be signed in to change notification settings - Fork 27
Main Menu
Benedikt S. Vogler edited this page Sep 28, 2017
·
2 revisions
The BasicMainMenu is just very basic and looks not good. Sooner or later you should use your own main menu. Programm your own main menu (start by extending from AbstractMainMenu.html) and pass it to the engine like this:
public static void main(String[] args) {
WE.setMainMenu(new CustomMainMenuScreen());
WE.launch("NameOfYourGame - Made with WE V" + WE.VERSION, args);
}
To start the game from your own main menu call WE.initAndStartGame:
WE.initAndStartGame(new CustomLoadingScreen(), new CustomGameController(), new CustomGameView());
This will show the loading screen until every resource is loaded and then uses the controller for data management and the view for rendering.
You also should add your custom files to the queue with
WE.getAssetManager().load(String fileName, Class<T> type)