Billy Williamton Posted March 23, 2015 Share Posted March 23, 2015 Is there a method I can use to draw arcs or hollow circles in phaser? Link to comment Share on other sites More sharing options...
Billy Williamton Posted March 24, 2015 Author Share Posted March 24, 2015 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 More sharing options...
Recommended Posts