Class 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
      void resize​(int width, int height)
      Resets the size of the background.
      void updateRender​(float delta, com.badlogic.gdx.graphics.g2d.SpriteBatch batch)
      Used to update and render the background.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScrollingBackground

        public ScrollingBackground()
        Class constructor.
    • 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.