Package com.mygdx.auber
Class ScrollingBackground
- java.lang.Object
-
- com.mygdx.auber.ScrollingBackground
-
public class ScrollingBackground extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ScrollingBackground()Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidresize(int width, int height)Resets the size of the background.voidupdateRender(float delta, com.badlogic.gdx.graphics.g2d.SpriteBatch batch)Used to update and render the background.
-
-
-
Method Detail
-
updateRender
public void updateRender(float delta, com.badlogic.gdx.graphics.g2d.SpriteBatch batch)Used to update and render the background.- Parameters:
delta- The time in seconds since the previous frame.batch- The batch used to draw the background.
-
resize
public void resize(int width, int height)Resets the size of the background.- Parameters:
width- The new width of this background.height- The new height of this background.
-
-