Class Main

java.lang.Object
com.badlogic.gdx.Game
io.github.team6ENG.EscapeUni.Main
All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener

public class Main extends com.badlogic.gdx.Game
Main class initialises the game
  • Field Details

    • batch

      public com.badlogic.gdx.graphics.g2d.SpriteBatch batch
    • gameFont

      public com.badlogic.gdx.graphics.g2d.BitmapFont gameFont
    • viewport

      public com.badlogic.gdx.utils.viewport.FitViewport viewport
    • buttonSkin

      public com.badlogic.gdx.scenes.scene2d.ui.Skin buttonSkin
    • activeSpritePath

      public String activeSpritePath
    • activeUniIDPath

      public String activeUniIDPath
    • gameTimer

      public float gameTimer
    • score

      public float score
    • gameVolume

      public float gameVolume
    • musicVolume

      public float musicVolume
    • totalNegativeEvents

      public final int totalNegativeEvents
      See Also:
    • totalPositiveEvents

      public final int totalPositiveEvents
      See Also:
    • totalHiddenEvents

      public final int totalHiddenEvents
      See Also:
    • foundNegativeEvents

      public int foundNegativeEvents
    • foundPositiveEvents

      public int foundPositiveEvents
    • foundHiddenEvents

      public int foundHiddenEvents
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • create

      public void create()
      Initialise global game variables
    • resetGame

      public void resetGame()
      Reset game and return to the main menu
    • resize

      public void resize(int width, int height)
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is resized. This can happen at any point during a non-paused state but will never happen before a call to ApplicationListener.create().
      Specified by:
      resize in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      resize in class com.badlogic.gdx.Game
      Parameters:
      width - the new width in pixels
      height - the new height in pixels
    • setInputProcessor

      public void setInputProcessor(com.badlogic.gdx.InputProcessor processor)
    • render

      public void render()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application should render itself.
      Specified by:
      render in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      render in class com.badlogic.gdx.Game
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.ApplicationListener
      Called when the Application is destroyed. Preceded by a call to ApplicationListener.pause().
      Specified by:
      dispose in interface com.badlogic.gdx.ApplicationListener
      Overrides:
      dispose in class com.badlogic.gdx.Game