Class: BackgroundObject

BackgroundObject(imagePath, x)

Represents a background object in the game, extending the MovableObject class.

Constructor

new BackgroundObject(imagePath, x)

Creates an instance of BackgroundObject.
Parameters:
Name Type Description
imagePath string The path to the image for the background.
x number The initial x-coordinate of the background object.
Source: