Package | Description |
---|---|
com.github.brunothg.game.engine.d2.object.sprite | |
com.github.brunothg.game.engine.image.sprite |
Modifier and Type | Method and Description |
---|---|
protected Sprite |
SpriteSceneObject.getSprite() |
Constructor and Description |
---|
Sprite2DSceneObject(Sprite sprite,
long defaultTime) |
Sprite2DSceneObject(Sprite sprite,
long defaultTime,
long[][] time) |
SpriteSceneObject(Sprite sprite,
long defaultTime)
Create an
SpriteSceneObject from a sprite with equal time for every frame. |
SpriteSceneObject(Sprite sprite,
long defaultTime,
long[][] time)
Create an
SpriteSceneObject from a sprite with full frames per row. |
SpriteSceneObject(Sprite sprite,
long defaultTime,
long[][] time,
int[] frames)
Create an
SpriteSceneObject from a sprite. |
Modifier and Type | Class and Description |
---|---|
class |
BufferedSprite
A
Sprite that initially divides the provided image into sub-images. |
class |
ColoredSprite
Sprite that overrides the color of the provided
Sprite . |
class |
DefaultSprite
Class for handling sprite images.
|
class |
DerivedSprite
A
Sprite that uses an other sprite, but limits the dimension and translate the
coordinates. |
class |
InvertedSprite
Sprite that uses another sprite and inverts the coordinates. |
class |
WeakSprite
This implementation of
Sprite caches tiles with WeakReference in order to find a
balance between time and memory |
Modifier and Type | Method and Description |
---|---|
Sprite |
WeakSprite.getSubSprite(int x,
int y,
int width,
int height) |
Sprite |
Sprite.getSubSprite(int x,
int y,
int width,
int height)
Get sub-sprite with given dimension.
|
Sprite |
InvertedSprite.getSubSprite(int x,
int y,
int width,
int height) |
Sprite |
DerivedSprite.getSubSprite(int x,
int y,
int width,
int height) |
Sprite |
DefaultSprite.getSubSprite(int x,
int y,
int width,
int height) |
Sprite |
ColoredSprite.getSubSprite(int x,
int y,
int width,
int height) |
Sprite |
BufferedSprite.getSubSprite(int x,
int y,
int width,
int height) |
Constructor and Description |
---|
ColoredSprite(Sprite sprite,
Color c) |
DerivedSprite(Sprite s,
int x,
int y,
int width,
int height) |
Copyright © 2017. All rights reserved.