Jump to content

Drawing arcs or hollow circles


Billy Williamton
 Share

Recommended Posts

var graphics = game.add.graphics(0, 0);

// Draw ring

graphics.lineStyle(20, 0xffffff);

graphics.arc(0, 0, 80, game.math.degToRad(0), game.math.degToRad(361), false);

targetSprite = game.add.sprite(game.world.centerX-10, game.world.centerY-10,graphics.generateTexture());

targetSprite.anchor.set(.5, .5);

graphics.destroy(true);

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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