Package | Description |
---|---|
cell2d |
Modifier and Type | Method and Description |
---|---|
SpriteSheet |
Sprite.getSpriteSheet()
Returns the SpriteSheet that this Sprite is part of, or null if it is not
part of one.
|
static SpriteSheet |
Assets.getSpriteSheet(java.lang.String name)
Returns the SpriteSheet in the list of SpriteSheets under the specified
name, or null if there is none.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Assets.add(java.lang.String name,
SpriteSheet spriteSheet)
Adds the specified SpriteSheet to the list of SpriteSheets under the
specified name.
|
Constructor and Description |
---|
Animation(SpriteSheet spriteSheet,
int x1,
int y1,
int x2,
int y2,
boolean columns)
Creates an Animation with the Sprites in a rectangular region of a
SpriteSheet as its frames.
|
Animation(SpriteSheet spriteSheet,
int x1,
int y1,
int x2,
int y2,
boolean columns,
long[] frameDurations)
Creates an Animation with the Sprites in a rectangular region of a
SpriteSheet as its frames.
|
SpriteSheet(SpriteSheet spriteSheet,
Filter filter,
boolean load)
Creates a new SpriteSheet from an existing SpriteSheet with a Filter
applied to it.
|