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
    Modifier and Type
    Field
    Description
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Level Transition constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static String
    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

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • LevelTransitionScreen

      public LevelTransitionScreen(GdxGame game)
      Level Transition constructor
      Parameters:
      game - active state of the game
  • Method Details

    • getTransitionTexture

      public static String getTransitionTexture(int frame)
      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 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
    • dispose

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

      public static void loadAssets()
      Load individual animation screens for the level transition.