public interface MapTileRastered extends MapTileFeature, MapTileRenderer
Here the usage:
loadSheets(Media, boolean)
MapTile.setTileRenderer(MapTileRenderer)
// Give reference to the MapTileRastered instance
Modifier and Type | Method and Description |
---|---|
int |
getRasterIndex(int ty)
Get raster index from input tile (depending of its height).
|
SpriteTiled |
getRasterSheet(Integer sheet,
int rasterIndex)
Get a tilesheet from its sheet and raster index.
|
void |
loadSheets(Media rasterConfig,
boolean smooth)
Load tile sheets as rastered.
|
renderTile
void loadSheets(Media rasterConfig, boolean smooth)
rasterConfig
- The raster file that define the colors.smooth
- true
for a smoothed raster (may be slower), false
else.LionEngineException
- If error when reading sheets.int getRasterIndex(int ty)
ty
- The vertical tile location in tile.SpriteTiled getRasterSheet(Integer sheet, int rasterIndex)
sheet
- The sheet numberrasterIndex
- The raster index.Copyright © 2016 Byron 3D Games Studio. All rights reserved.