Constructor
new Coin(x)
Creates an instance of Coin.
Initializes the coin with a given x-coordinate and random y-coordinate.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | The x-coordinate of the coin. |
- Source: