public class BackgroundElementRastered extends BackgroundElement
Constructor and Description |
---|
BackgroundElementRastered(int mainX,
int mainY,
Media media,
Media rasterFile,
int rastersNumber)
Create a rastered background element.
|
Modifier and Type | Method and Description |
---|---|
Sprite |
getRaster(int id)
Get raster surface from its id.
|
getMainX, getMainY, getOffsetX, getOffsetY, getRenderable, setMainX, setMainY, setOffsetX, setOffsetY
public BackgroundElementRastered(int mainX, int mainY, Media media, Media rasterFile, int rastersNumber)
mainX
- The main location x.mainY
- The main location y.media
- The image media.rasterFile
- The raster media.rastersNumber
- The number of rasters.public Sprite getRaster(int id)
id
- The raster id.Copyright © 2017 Byron 3D Games Studio. All rights reserved.