Package com.csse3200.game.screens
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
-
Method Summary
Methods inherited from class com.badlogic.gdx.ScreenAdapter
hide, show
-
Constructor Details
-
MainMenuScreen
-
-
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 interfacecom.badlogic.gdx.Screen
- Overrides:
render
in classcom.badlogic.gdx.ScreenAdapter
-
resize
public void resize(int width, int height) - Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- Overrides:
resize
in classcom.badlogic.gdx.ScreenAdapter
-
pause
public void pause()- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
- Overrides:
pause
in classcom.badlogic.gdx.ScreenAdapter
-
resume
public void resume()- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
- Overrides:
resume
in classcom.badlogic.gdx.ScreenAdapter
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
- Overrides:
dispose
in classcom.badlogic.gdx.ScreenAdapter
-