Class SceneManager

java.lang.Object
org.indiumstudios.keylib.SceneManagment.SceneManager

public final class SceneManager extends Object
  • Field Details

    • currentScene

      public static Scene currentScene
      The current scene.
  • Method Details

    • addScene

      public static Scene addScene(Scene scene)
      Adds a scene.
      Parameters:
      scene - The scene you want to add.
      Returns:
      The scene returned is returned for efficiency.
    • setupScene

      public static void setupScene()
      Sets up the scene.
    • renderScene

      public static void renderScene()
      Renders the scene.
    • resizeScene

      public static void resizeScene(int width, int height, boolean centerCamera)
      Resize the scene required by libGDX.
      Parameters:
      width - The width argument of the resize libGDX function.
      height - The height argument of the resize libGDX function.
      centerCamera - Whether the camera is centered or not.
    • getScenes

      public static ArrayList<Scene> getScenes()
      Retunrs the ArrayList of scenes.
      Returns:
      The scenes ArrayList.