HTML and CSS Reference
In-Depth Information
},
'bouncy ball': {
className: 'BouncyBall',
radius: 10,
density: 1.1,
friction: 0.8,
restitution: 0.4
}
};
game.levels = [
{
hoopPosition: {x:50, y:150},
ballName: 'slow ball',
ballPosition: {x:350, y:250},
ballRandomRange: {x:60, y:60},
obstacles: []
},
{
hoopPosition: {x:50, y:200},
ballName: 'bouncy ball',
ballPosition: {x:300, y:250},
ballRandomRange: {x:80, y:80},
obstacles: [
{
type: 'rect',
graphicName: 'BrownSquare',
position: {x: 150, y: 160},
dimension: {width: 10, height:10},
angle: 45
}
]
},
{
hoopPosition: {x:50, y:160},
ballName: 'slow ball',
ballPosition: {x:350, y:250},
ballRandomRange: {x:80, y:80},
obstacles: [
{
type: 'rect',
graphicName: 'BrownSquare',
position: {x: 200, y: 160},
dimension: {width: 10, height:10},
angle: 0
 
Search WWH ::




Custom Search