public class SpriteSheet
extends java.lang.Object
Sprite
instancesConstructor and Description |
---|
SpriteSheet(Texture sheet,
int frameWidth,
int frameHeight) |
SpriteSheet(TextureRegion sheet,
int frameWidth,
int frameHeight) |
Modifier and Type | Method and Description |
---|---|
int |
getFrameX(int index) |
int |
getFrameY(int index) |
Sprite |
getSprite(int index) |
Sprite |
getSprite(int x,
int y) |
int |
getTotalColumns() |
int |
getTotalFrames() |
int |
getTotalRows() |
public SpriteSheet(Texture sheet, int frameWidth, int frameHeight)
public SpriteSheet(TextureRegion sheet, int frameWidth, int frameHeight)
public Sprite getSprite(int index)
public Sprite getSprite(int x, int y)
public int getFrameX(int index)
public int getFrameY(int index)
public int getTotalColumns()
public int getTotalRows()
public int getTotalFrames()