Class EndMiniGameScreen

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

public class EndMiniGameScreen extends com.badlogic.gdx.ScreenAdapter
Makes a new screen when the snake game is over. Displays the stats and add buttons to exit and restart. Gives loot box and achievements to player based on the medal
  • Constructor Summary

    Constructors
    Constructor
    Description
    EndMiniGameScreen(GdxGame game, int score, MiniGameNames gameName, com.badlogic.gdx.Screen screen, ServiceContainer container)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Dispose the fonts, skin and stage.
    void
    render(float delta)
    Renders the stage that includes the background image and the contentsTable
    void
    resize(int width, int height)
    Resize function that automatically gets called when the screen is resized.

    Methods inherited from class com.badlogic.gdx.ScreenAdapter

    hide, pause, resume, show

    Methods inherited from class java.lang.Object

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

  • Method Details

    • render

      public void render(float delta)
      Renders the stage that includes the background image and the contentsTable
      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.
    • dispose

      public void dispose()
      Dispose the fonts, skin and stage.
      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.