Skip to content

Getting Started

Ryandw11 edited this page Jul 27, 2020 · 1 revision

In order to make a game you must make a class that implements Game.

The start method is called when the game is started. (Note: This method cannot contain any graphical calls. GameItems, UIObjects, UIComponents, and anything else that relates to graphics cannot be instantiated in this method.)

The next method is the scene to be loaded when the game starts. More information about the scene system can be found here.
Example:

@Override
public Scene firstScene(GameHandler handler) throws Exception{
    TitleScreenScene tss = new TitleScreenScene(handler, this);
    return tss;
}
Clone this wiki locally