Phaser.Component.Angle = function (){ } ; Phaser.Component.Angle.prototype = { angle: { get: function (){ return Phaser.Math.wrapAngle(Phaser.Math.radToDeg(this.rotation)); } , set: function (value){ this.rotation = Phaser.Math.degToRad(Phaser.Math.wrapAngle(value)); } } } ;