libgdx Life-cycle Main Game file


Example

class Tutorial extends Game {
    
    public ScreenNumberOne screenNumberOne;

    public void create(){
        screenNumberOne = new ScreenNumberOne(this);

        this.setScreen(screenNumberOne);
    }

    public void render() {
        super.render();
    }
}

That is the basic file to allow you to make multiple screens. Notice that it extends Game.