Class Index | File Index

Classes


Class BB_Ball


Defined in: Ball.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
BB_Ball(sprite, x, y)
The big red button
Method Summary
Method Attributes Method Name and Description
 
bounce(vx, vy)
Set button bounce vector
 
check(x, y, bounce)
Check bouncs point
 
hold(x, y)
Stop he button and set the line end
 
paint(ctx)
Draw the button
 
reset(x, y)
Reset button position to default values
 
run()
Animation thread
 
shot(x, y)
Start button animation
 
stop()
Stop the animation
Class Detail
BB_Ball(sprite, x, y)
The big red button
Parameters:
{BB_Sprite} sprite
{Number} x
{Number} y
Method Detail
bounce(vx, vy)
Set button bounce vector
Parameters:
{Number} vx
{Number} vy

{Boolean} check(x, y, bounce)
Check bouncs point
Parameters:
{Number} x
{Number} y
{Boolean} bounce
Returns:
{Boolean}

hold(x, y)
Stop he button and set the line end
Parameters:
{Number} x
{Number} y

paint(ctx)
Draw the button
Parameters:
ctx

reset(x, y)
Reset button position to default values
Parameters:
{Number} x
{Number} y

run()
Animation thread

shot(x, y)
Start button animation
Parameters:
{Number} x
{Number} y

stop()
Stop the animation

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Oct 27 2023 17:46:21 GMT-0700 (PDT)