public class FlowerSprite extends Sprite
DOWN_DELTA, LEFT_DELTA, RIGHT_DELTA, UP_DELTA
Constructor and Description |
---|
FlowerSprite(int widthOfDrawingRegion,
int heightOfDrawingRegion)
Creates a basic sprite within a game world with the specified dimensions.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D graphics2D)
Draws this sprite on the passed Graphics2D objects.
|
void |
moveDown() |
void |
moveLeft() |
void |
moveRight() |
void |
moveUp() |
addJitter, getAnchorPoint, getBounds2D, getDownDelta, getHeightOfDrawingRegion, getLeftDelta, getMaxPeturb, getMinPerturb, getNewPosition, getRightDelta, getTheBoundingShape, getUpDelta, getWidthOfDrawingRegion, isCollided, isExploded, reposition, setAnchorPoint, setExploded, setHeightOfDrawingRegion, setTheBoundingShape, setWidthOfDrawingRegion, wrapAround
public FlowerSprite(int widthOfDrawingRegion, int heightOfDrawingRegion)
widthOfDrawingRegion
- as described aboveheightOfDrawingRegion
- as described above