Package view.gameStates
Class IntroView
java.lang.Object
view.gameStates.IntroView
The IntroView class represents the view for the
IntroModel class.
It handles drawing the level transition, player animation, and introduction story text.-
Constructor Summary
ConstructorsConstructorDescriptionIntroView(IntroModel introModel) Constructs an IntroView with the specified IntroModel. -
Method Summary
Modifier and TypeMethodDescriptionvoidDraws the introduction screen elements, including the level, text, and player animation.voidUpdates the player animation by incrementing the animation tick and index.
-
Constructor Details
-
IntroView
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
Draws the introduction screen elements, including the level, text, and player animation.- Parameters:
g- the Graphics object to draw with
-