Class MiniGameMenuScreen

java.lang.Object
com.csse3200.game.screens.MiniGameMenuScreen
All Implemented Interfaces:
com.badlogic.gdx.Screen

public class MiniGameMenuScreen extends Object implements com.badlogic.gdx.Screen
CLass for the MiniGame Menu Screen. Has an image and button for each minigame
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes of stage, skin, textures and batch
    void
    Called when the screen is hidden
    void
    Called when the screen is paused
    void
    render(float delta)
    Renders the background and polls for BACKSPACE key press
    void
    resize(int width, int height)
    Called when the screen is resized
    void
    Called when the screen is resumed after a pause
    void
    Sets up the images and buttons.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MiniGameMenuScreen

      public MiniGameMenuScreen(GdxGame game)
  • Method Details

    • show

      public void show()
      Sets up the images and buttons. This is called when the screen is made and resized.
      Specified by:
      show in interface com.badlogic.gdx.Screen
    • render

      public void render(float delta)
      Renders the background and polls for BACKSPACE key press
      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)
      Called when the screen is resized
      Specified by:
      resize in interface com.badlogic.gdx.Screen
      Parameters:
      width - width fo the new screen
      height - height of the new screen
    • pause

      public void pause()
      Called when the screen is paused
      Specified by:
      pause in interface com.badlogic.gdx.Screen
    • resume

      public void resume()
      Called when the screen is resumed after a pause
      Specified by:
      resume in interface com.badlogic.gdx.Screen
    • hide

      public void hide()
      Called when the screen is hidden
      Specified by:
      hide in interface com.badlogic.gdx.Screen
    • dispose

      public void dispose()
      Disposes of stage, skin, textures and batch
      Specified by:
      dispose in interface com.badlogic.gdx.Screen