Package view.overlays.menuOverlays
Class MenuTwinkleBubble
java.lang.Object
model.entities.EntityModel
view.overlays.menuOverlays.MenuTwinkleBubble
The MenuTwinkleBubble class represents a twinkling bubble in the menu.
Many twinkling bubbles are used as a background effect in the menus.
Thi class handles the animation and movement of the bubble.
-
Field Summary
Fields inherited from class model.entities.EntityModel
active, height, hitbox, immune, levelManagerModel, timer, width, x, y -
Constructor Summary
ConstructorsConstructorDescriptionMenuTwinkleBubble(BufferedImage[] sprite, int startX, int startY, MenuTwinkleBubbleManager manager) Constructs a MenuTwinkleBubble with the specified sprite, starting position, and manager. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(Graphics2D g) Draws the bubble on the screen at its current position and animation frame.voidupdate()Updates the bubble's animation and position.Methods inherited from class model.entities.EntityModel
conpenetrationSafeUpdateXPos, deactivate, getHitbox, getTileX, getTileY, initHitbox, initLevelManager, isActive, isImmune, setActive, updateXPos
-
Constructor Details
-
Method Details
-
update
public void update()Updates the bubble's animation and position. -
draw
Draws the bubble on the screen at its current position and animation frame.- Parameters:
g- the Graphics2D object to draw with
-