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: