Class BB_Game
Defined in: Game.js.
Constructor Attributes | Constructor Name and Description |
---|---|
BB_Game(app, level)
Game scene
|
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 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