Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

graphics.drawRect doesn't work properly


Recommended Posts

As you can see drawRect produces some strange shape which is definetely doesn't look like rect

But drawCircle works perfectly.

I'm using Typescript + phaser 1.1.4 + definitions file from dev branch

var 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


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...