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 TypeMethodDescriptionvoiddispose()static StringgetTransitionTexture(int frame) Public facing function to allow other components to get the string of a transition texture.static voidLoad individual animation screens for the level transition.voidrender(float delta) voidresize(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:
 renderin interfacecom.badlogic.gdx.Screen- Overrides:
 renderin classcom.badlogic.gdx.ScreenAdapter
 - 
resize
public void resize(int width, int height) - Specified by:
 resizein interfacecom.badlogic.gdx.Screen- Overrides:
 resizein classcom.badlogic.gdx.ScreenAdapter
 - 
dispose
public void dispose()- Specified by:
 disposein interfacecom.badlogic.gdx.Screen- Overrides:
 disposein classcom.badlogic.gdx.ScreenAdapter
 - 
loadAssets
public static void loadAssets()Load individual animation screens for the level transition. 
 -