public interface TileRenderer
extends org.mini2Dx.gdx.utils.Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
draw(org.mini2Dx.core.Graphics g,
int renderX,
int renderY,
float alpha)
Renders the
Tile at the given coordinates |
void |
draw(org.mini2Dx.core.Graphics g,
int renderX,
int renderY,
float alpha,
boolean flipH,
boolean flipV,
boolean flipD)
Renders the
Tile at the given coordinates |
org.mini2Dx.core.graphics.Sprite |
getCurrentTileImage()
Returns the current
Tile image |
void |
update(float delta)
Updates the
Tile frame |
void update(float delta)
Tile framedelta - The time since the last update in secondsvoid draw(org.mini2Dx.core.Graphics g,
int renderX,
int renderY,
float alpha)
Tile at the given coordinatesg - The Graphics context to userenderX - The x coordinate to render atrenderY - The y coordinate to render atalpha - The alpha value to render withvoid draw(org.mini2Dx.core.Graphics g,
int renderX,
int renderY,
float alpha,
boolean flipH,
boolean flipV,
boolean flipD)
Tile at the given coordinatesg - The Graphics context to userenderX - The x coordinate to render atrenderY - The y coordinate to render atalpha - The alpha value to render withflipH - True if the tile is flipped horizontallyflipV - True if the tile is flipped verticallyflipD - True if the tile is flipped (anti) diagonally - rotationorg.mini2Dx.core.graphics.Sprite getCurrentTileImage()
Tile image