Class MainMenuScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.csse3200.game.screens.MainMenuScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class MainMenuScreen extends com.badlogic.gdx.ScreenAdapter
The game screen containing the main menu.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Builds the main menu screen.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Frees screen resources and clears registered services.
    void
     
    void
    render(float delta)
    Updates entities and renders the frame.
    void
    resize(int width, int height)
    Forwards new size to the renderer.
    void
     

    Methods inherited from class com.badlogic.gdx.ScreenAdapter

    hide, show

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MainMenuScreen

      public MainMenuScreen(GdxGame game)
      Builds the main menu screen. Registers services, creates the renderer, loads assets, and builds the UI.
  • Method Details

    • render

      public void render(float delta)
      Updates entities and renders the frame.
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Overrides:
      render in class com.badlogic.gdx.ScreenAdapter
    • resize

      public void resize(int width, int height)
      Forwards new size to the renderer.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
    • pause

      public void pause()
      Specified by:
      pause in interface com.badlogic.gdx.Screen
      Overrides:
      pause in class com.badlogic.gdx.ScreenAdapter
    • resume

      public void resume()
      Specified by:
      resume in interface com.badlogic.gdx.Screen
      Overrides:
      resume in class com.badlogic.gdx.ScreenAdapter
    • dispose

      public void dispose()
      Frees screen resources and clears registered services. Do not reuse the screen after this is called.
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter