Class MazeGameScreen

java.lang.Object
com.badlogic.gdx.ScreenAdapter
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class MazeGameScreen extends MiniGameScreen
Class for Underwater Maze Mini-Game Screen
  • Constructor Details

    • MazeGameScreen

      public MazeGameScreen(GdxGame game, com.badlogic.gdx.Screen screen, ServiceContainer container)
  • Method Details

    • render

      public void render(float delta)
      Renders the game onto the screen and checks score to end the game
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Overrides:
      render in class com.badlogic.gdx.ScreenAdapter
      Parameters:
      delta - The time in seconds since the last render.
    • pause

      public void pause()
      Pauses the game
      Specified by:
      pause in interface com.badlogic.gdx.Screen
      Overrides:
      pause in class com.badlogic.gdx.ScreenAdapter
    • resume

      public void resume()
      Resumes the game
      Specified by:
      resume in interface com.badlogic.gdx.Screen
      Overrides:
      resume in class com.badlogic.gdx.ScreenAdapter
    • dispose

      public void dispose()
      Dispose of the screen
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
      Overrides:
      dispose in class com.badlogic.gdx.ScreenAdapter
    • resize

      public void resize(int width, int height)
      Resize function that automatically gets called when the screen is resized. Resizes all components with a consistent scale to maintain the screen's original design.
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Overrides:
      resize in class com.badlogic.gdx.ScreenAdapter
      Parameters:
      width - The width of the resized screen.
      height - The height of the resized screen.