qdrj Posted January 24, 2014 Share Posted January 24, 2014 As you can see drawRect produces some strange shape which is definetely doesn't look like rectBut drawCircle works perfectly.I'm using Typescript + phaser 1.1.4 + definitions file from dev branchvar rectGraphics:Phaser.Graphics = this.game.add.graphics(100, 40);rectGraphics.beginFill(0xfff000);rectGraphics.drawRect(0, 0, 40, 20);rectGraphics.endFill();var circleGraphics:Phaser.Graphics = this.game.add.graphics(200, 40);circleGraphics.beginFill(0xfff000);circleGraphics.drawCircle(0, 0, 20);circleGraphics.endFill(); Link to comment Share on other sites More sharing options...
qdrj Posted January 24, 2014 Author Share Posted January 24, 2014 Just found workaround for this bugvar rectGraphics:Phaser.Graphics = this.game.add.graphics(100, 40);rectGraphics.lineStyle(0.1, 0xfff000)rectGraphics.beginFill(0xfff000);rectGraphics.drawRect(0, 0, 40, 20);rectGraphics.endFill(); Link to comment Share on other sites More sharing options...
rich Posted January 24, 2014 Share Posted January 24, 2014 Pretty sure they fixed this in Pixi 1.4, so should be fixed when we upgrade to that. Link to comment Share on other sites More sharing options...
Recommended Posts