mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Phaser.Graphics.drawCircle now overrides PIXI.drawCircle which means the docs are now correct re: diameter not radius (thanks @ethankaminski #1454)
This commit is contained in:
parent
f23c0aa24b
commit
c6c5856dec
2 changed files with 17 additions and 0 deletions
|
@ -82,6 +82,7 @@ Version 2.2.2 - "Alkindar" - in development
|
|||
* The new fixed time-step code has been more carefully linked to Pixi transform updates. This should finally put a stop to the tunneling issues that were being reported.
|
||||
* Tween.stop fired a different set of onComplete parameters to Tween.update. Both now dispatch onComplete(target, tween) as the parameters in that order (thanks @P0rnflake #1450)
|
||||
* Removed redundant `tolerance` parameter from Rectangle.intersects (thanks @toolness #1463)
|
||||
* Phaser.Graphics.drawCircle now overrides PIXI.drawCircle which means the docs are now correct re: diameter not radius (thanks @ethankaminski #1454)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
|
|
|
@ -194,6 +194,22 @@ Phaser.Graphics.prototype.destroy = function(destroyChildren) {
|
|||
|
||||
};
|
||||
|
||||
/*
|
||||
* Draws a circle.
|
||||
*
|
||||
* @method Phaser.Graphics.prototype.drawCircle
|
||||
* @param {Number} x - The X coordinate of the center of the circle.
|
||||
* @param {Number} y - The Y coordinate of the center of the circle.
|
||||
* @param {Number} radius - The diameter of the circle.
|
||||
* @return {Phaser.Graphics} This Graphics object.
|
||||
*/
|
||||
Phaser.Graphics.prototype.drawCircle = function(x, y, diameter)
|
||||
{
|
||||
this.drawShape(new Phaser.Circle(x, y, diameter));
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
/*
|
||||
* Draws a single {Phaser.Polygon} triangle from a {Phaser.Point} array
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue