mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
27 lines
358 B
JavaScript
27 lines
358 B
JavaScript
|
var Bounce = {
|
||
|
|
||
|
setBounce: function (value)
|
||
|
{
|
||
|
this.body.bounciness = value;
|
||
|
|
||
|
return this;
|
||
|
},
|
||
|
|
||
|
bounciness: {
|
||
|
|
||
|
get: function ()
|
||
|
{
|
||
|
return this.body.bounciness;
|
||
|
},
|
||
|
|
||
|
set: function (value)
|
||
|
{
|
||
|
this.body.bounciness = value;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = Bounce;
|