Phaser.Graphics = function (game, x, y){ PIXI.Graphics.call(this); this.type = Phaser.GRAPHICS; } ; Phaser.Graphics.prototype = Object.create(PIXI.Graphics.prototype); Phaser.Graphics.prototype.constructor = Phaser.Graphics; Phaser.Graphics.prototype = Phaser.Utils.extend(true , Phaser.Graphics.prototype, Phaser.Sprite.prototype); Object.defineProperty(Phaser.Graphics.prototype, 'angle', { get: function (){ return Phaser.Math.radToDeg(this.rotation); } , set: function (value){ this.rotation = Phaser.Math.degToRad(value); } } );