public class SampledSprite extends TweeningSprite
Note: This class uses a ArrayList of Content objects rather than a CompositeContent object for efficiency reasons.
REMAIN, REMOVE
Constructor and Description |
---|
SampledSprite()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addKeyTime(int keyTime,
java.awt.geom.Point2D location,
java.lang.Double rotation,
java.lang.Double scaling,
Content c)
Add a key time.
|
handleTick, setEndState
getBounds2D, getBounds2D, intersects, render, setLocation, setRotation, setRotation, setScale, setScale, setVisible
public void addKeyTime(int keyTime, java.awt.geom.Point2D location, java.lang.Double rotation, java.lang.Double scaling, Content c)
Note: This method does not ensure that the first key frame actually contains an image.
keyTime
- The timelocation
- The location of the sprite at this timerotation
- The rotation of the sprite (null to align with path)scaling
- The scaling of the sprite at this timec
- The Content to use (or null to use previous)