Skip to content

AnimalSelectionScreen

davidaraba edited this page Aug 27, 2024 · 4 revisions

Overview

The Animal Selection Screen is a key component of the game, allowing players to choose their preferred animal character. This screen is composed of several classes that manage the display, interactions, and overall functionality of the animal selection process.

Attributes

  • private Stage stage: Represents the UI stage where all UI elements are added and rendered.
  • private AnimalSelectionDisplay display: A reference to the AnimalSelectionDisplay object that manages the UI elements specific to animal selection.
  • private AnimalSelectionActions actions: A reference to the AnimalSelectionActions object that handles user interactions on the screen.

Methods

  • public AnimalSelectionScreen(GdxGame game): Constructor to initialize the screen.
  • public void render(float delta): Renders the screen and updates the stage.
  • public void resize(int width, int height): Adjusts the screen size and updates the viewport.
  • public void dispose(): Cleans up resources when the screen is no longer needed.

Back

Clone this wiki locally