Class GameScreen

java.lang.Object
io.github.team6ENG.EscapeUni.GameScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen, com.badlogic.gdx.utils.Disposable

public class GameScreen extends Object implements com.badlogic.gdx.Screen
GameScreen - main gameplay screen
  • Field Details

    • lighting

      public Lighting lighting
    • isDark

      public boolean isDark
    • mapWaterId

      public final int mapWaterId
      See Also:
    • mapLangwithBarriersId

      public final int mapLangwithBarriersId
      See Also:
    • hasTorch

      public boolean hasTorch
    • items

      public final HashMap<String,Collectable> items
    • numOfInventoryItems

      public int numOfInventoryItems
    • playerSpeedModifier

      public float playerSpeedModifier
    • audioManager

      public AudioManager audioManager
  • Constructor Details

    • GameScreen

      public GameScreen(Main game)
      Initialise the game elements
      Parameters:
      game - - Instance of Main
  • Method Details

    • show

      public void show()
      Description copied from interface: com.badlogic.gdx.Screen
      Called when this screen becomes the current screen for a Game.
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • render

      public void render(float delta)
      Calls every frame to draw game screen
      Specified by:
      render in interface com.badlogic.gdx.Screen
      Parameters:
      delta - The time in seconds since the last render.
    • gameOver

      public void gameOver()
    • resize

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

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

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

      public void hide()
      Description copied from interface: com.badlogic.gdx.Screen
      Called when this screen is no longer the current screen for a Game.
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.Screen
      Called when this screen should release all resources.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Specified by:
      dispose in interface com.badlogic.gdx.Screen