Jump to content

Draw an Arc


Recommended Posts

    create: function(){      this.circle = this.add.bitmapData(resolutionGame[0], resolutionGame[1]);      this.circleSprite = this.add.sprite(0, 0, this.circle);    },    update: function(){      this.circle.ctx.beginPath();      this.circle.ctx.arc(x, y, radius, angleStart, angle);      this.circle.ctx.strokeStyle = '#000000';      this.circle.ctx.stroke();      this.circle.ctx.closePath();    },

Something like this should work. I haven't done game dev for few of weeks, so can't remember

Link to comment
Share on other sites


  • Recently Browsing   0 members

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