|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.b3dgs.lionengine.game.background.Parallax
public class Parallax
Parallax is used for background depth effect (2.5D).
Constructor Summary | |
---|---|
Parallax(java.lang.String path,
int parallaxsNumber,
boolean wide,
int decY,
Screen screen)
Create a new parallax. |
Method Summary | |
---|---|
void |
render(java.awt.Graphics2D g)
Render component. |
void |
update(int x,
int y,
float speed,
float extrp)
Update component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Parallax(java.lang.String path, int parallaxsNumber, boolean wide, int decY, Screen screen)
path
- parallax image path.parallaxsNumber
- number parallax lines.wide
- screen wide.decY
- vertical offset.screen
- screen reference.Method Detail |
---|
public void update(int x, int y, float speed, float extrp)
BackgroundComponent
update
in interface BackgroundComponent
x
- horizontal offset.y
- vertical offset.speed
- scrolling speed.extrp
- extrapolation value.public void render(java.awt.Graphics2D g)
BackgroundComponent
render
in interface BackgroundComponent
g
- graphic output.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |