Skip to content

Commit bebb83b

Browse files
committed
Removed methods that Pixi now offers directly.
1 parent e14c6ef commit bebb83b

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/gameobjects/Graphics.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -194,24 +194,6 @@ Phaser.Graphics.prototype.destroy = function(destroyChildren) {
194194

195195
};
196196

197-
/*
198-
* Draws a {Phaser.Polygon} or a {PIXI.Polygon} filled
199-
*
200-
* @method Phaser.Graphics.prototype.drawPolygon
201-
*/
202-
Phaser.Graphics.prototype.drawPolygon = function (poly) {
203-
204-
this.moveTo(poly.points[0].x, poly.points[0].y);
205-
206-
for (var i = 1; i < poly.points.length; i += 1)
207-
{
208-
this.lineTo(poly.points[i].x, poly.points[i].y);
209-
}
210-
211-
this.lineTo(poly.points[0].x, poly.points[0].y);
212-
213-
};
214-
215197
/*
216198
* Draws a single {Phaser.Polygon} triangle from a {Phaser.Point} array
217199
*

0 commit comments

Comments
 (0)