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 Details

    • MainMenuScreen

      public MainMenuScreen(GdxGame game)
  • Method Details

    • render

      public void render(float delta)
      Loads the assets required for the main menu screen, including textures and animations. This method initializes and loads sprite sheets for various celestial objects like stars, planets, and galaxies. Each sprite sheet is divided into individual frames for animation purposes.
      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)
      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()
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter