Class IntroView

java.lang.Object
view.gameStates.IntroView

public class IntroView extends Object
The IntroView class represents the view for the IntroModel class. It handles drawing the level transition, player animation, and introduction story text.
  • Constructor Details

    • IntroView

      public IntroView(IntroModel introModel)
      Constructs an IntroView with the specified IntroModel.
      Parameters:
      introModel - the model for the introduction screen
  • Method Details

    • updatePlayerAnimation

      public void updatePlayerAnimation()
      Updates the player animation by incrementing the animation tick and index.
    • draw

      public void draw(Graphics g)
      Draws the introduction screen elements, including the level, text, and player animation.
      Parameters:
      g - the Graphics object to draw with