Class GameScreen

java.lang.Object
de.tum.cit.ase.maze.screens.GameScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class GameScreen extends Object implements com.badlogic.gdx.Screen
The GameScreen class is responsible for rendering the gameplay screen. It handles the game logic and rendering of the game elements.
  • Constructor Details

    • GameScreen

      public GameScreen(MazeRunnerGame game)
    • GameScreen

      public GameScreen(MazeRunnerGame game, boolean loadMap)
      Constructor for GameScreen. Sets up the camera and font.
      Parameters:
      game - The main game class, used to access global resources and methods.
  • Method Details

    • handleEndOfGame

      public void handleEndOfGame(boolean victory)
      Sets the end of the game and determines if it was a victory or not.
      Parameters:
      victory - true if the game ended in victory, false otherwise
    • show

      public void show()
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • render

      public void render(float delta)
      Renders the game screen.
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Parameters:
      delta - The time in seconds since the last render.
    • resize

      public void resize(int width, int height)
      Specified by:
      resize in interface com.badlogic.gdx.Screen
    • pause

      public void pause()
      Specified by:
      pause in interface com.badlogic.gdx.Screen
    • resume

      public void resume()
      Specified by:
      resume in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.Screen
    • getCollectableManager

      public CollectableManager getCollectableManager()
    • getShapeRenderer

      public com.badlogic.gdx.graphics.glutils.ShapeRenderer getShapeRenderer()
    • getGame

      public MazeRunnerGame getGame()