Package com.deco2800.game.screens
Class LevelTransitionScreen
java.lang.Object
com.badlogic.gdx.ScreenAdapter
com.deco2800.game.screens.LevelTransitionScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
public class LevelTransitionScreen
extends com.badlogic.gdx.ScreenAdapter
The game screen containing the main menu.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
static String
getTransitionTexture
(int frame) Public facing function to allow other components to get the string of a transition texture.static void
Load individual animation screens for the level transition.void
render
(float delta) void
resize
(int width, int height) Methods inherited from class com.badlogic.gdx.ScreenAdapter
hide, pause, resume, show
-
Field Details
-
FRAME_COUNT
public static final int FRAME_COUNT- See Also:
-
-
Constructor Details
-
LevelTransitionScreen
Level Transition constructor- Parameters:
game
- active state of the game
-
-
Method Details
-
getTransitionTexture
Public facing function to allow other components to get the string of a transition texture.- Parameters:
frame
- The desired frame string to acquire- Returns:
- The String of the desired frame
-
render
public void render(float delta) - 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
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
- Overrides:
dispose
in classcom.badlogic.gdx.ScreenAdapter
-
loadAssets
public static void loadAssets()Load individual animation screens for the level transition.
-