Class LevelTransitionView

java.lang.Object
view.gameStates.LevelTransitionView

public class LevelTransitionView extends Object
The LevelTransitionView class represents the view for the LevelTransitionModel. It handles drawing the new and old levels, as well as the player animation during the transition.
  • Constructor Details

    • LevelTransitionView

      public LevelTransitionView(LevelTransitionModel levelTransitionModel)
      Constructs a LevelTransitionView with the specified LevelTransitionModel.
      Parameters:
      levelTransitionModel - the model for the level transition screen
  • Method Details

    • draw

      public void draw(Graphics g)
      Draws the level transition screen elements, including the new and old levels and the player animation.
      Parameters:
      g - the Graphics object to draw with
    • updatePlayerAnimation

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