Class BB_Coin
Defined in: Coin.js.
Constructor Attributes | Constructor Name and Description |
---|---|
BB_Coin(sprite, x, y)
The golden button
|
Method Attributes | Method Name and Description |
---|---|
check(ball)
Check ball collision
|
|
paint(ctx)
Draw the button
|
|
run()
Animation thread
|
Class Detail
BB_Coin(sprite, x, y)
The golden button
- Parameters:
- {BB_Sprite} sprite
- {Number} x
- {Number} y
Method Detail
{Boolean}
check(ball)
Check ball collision
- Parameters:
- {BB_Ball} ball
- Returns:
- {Boolean}
paint(ctx)
Draw the button
- Parameters:
- ctx
run()
Animation thread