Class HomeView

java.lang.Object
view.gameStates.HomeView

public class HomeView extends Object
The HomeView class represents the view for the home screen of the game. It handles loading and drawing the game logo, updating the positions of elements, and displaying the start prompt.
  • Constructor Details

    • HomeView

      public HomeView()
      Constructs a HomeView.
  • Method Details

    • updatePositions

      public void updatePositions()
      Updates the positions of the logo and bubbles. Moves the logo to its final position if it is not already there.
    • draw

      public void draw(Graphics g)
      Draws the home screen elements, including the logo and bubbles. Displays the start prompt when the logo is in position.
      Parameters:
      g - the Graphics object to draw with
    • IsLogoInPosition

      public boolean IsLogoInPosition()
      Checks if the logo is in its final position.
      Returns:
      true if the logo is in position, false otherwise