java.lang.Object
com.csse3200.game.minigames.birdiedash.entities.Background

public class Background extends Object
This claass makes a moving background for the Birdie Dash Mini-Game
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static float
     
    static float
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Background(float startSpeed, float screenWidth)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(float dt)
    Updates the background to be moving

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • xBG1

      public static float xBG1
    • xBG2

      public static float xBG2
  • Constructor Details

    • Background

      public Background(float startSpeed, float screenWidth)
  • Method Details

    • update

      public void update(float dt)
      Updates the background to be moving
      Parameters:
      dt - time since last update