Class: Clouds

Clouds(x)

Represents the clouds in the game.

Constructor

new Clouds(x)

Creates an instance of Clouds. Initializes the clouds with a given x-coordinate and starts the animation.
Parameters:
Name Type Description
x number The x-coordinate of the clouds.
Source:

Methods

animate()

Animates the clouds by moving them to the left.
Source: