Class Index | File Index

Classes


Class BB_Game


Defined in: Game.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
BB_Game(app, level)
Game scene
Field Summary
Field Attributes Field Name and Description
<static>  
BB_Game.maps
Game maps data b: ball position c: coins position w: walls position and size h: holes position
Method Summary
Method Attributes Method Name and Description
 
check(ball)
Check ball bounce on drawer
 
end()
Check game status
 
on(e, x, y, touch)
Game event handler
 
paint(ctx)
Paint game canvas
 
run()
Game thread
Class Detail
BB_Game(app, level)
Game scene
Parameters:
{BB_App} app
{number} level
Returns:
{BB_Game}
Field Detail
<static> BB_Game.maps
Game maps data b: ball position c: coins position w: walls position and size h: holes position
Method Detail
{Boolean} check(ball)
Check ball bounce on drawer
Parameters:
{BB_Ball} ball
Returns:
{Boolean}

{Boolean} end()
Check game status
Returns:
{Boolean}

on(e, x, y, touch)
Game event handler
Parameters:
{String} e
{Number} x
{Number} y
{Boolean} touch

paint(ctx)
Paint game canvas
Parameters:
ctx

run()
Game thread

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