hexonaut / haxe-phaser

Haxe externs for Phaser.
MIT License
51 stars 9 forks source link

about Graphics #34

Closed andyli closed 9 years ago

andyli commented 9 years ago

A number of phaser.pixi.primitives.Graphics methods (e.g. lineStyle) are set to its prototype object. Those are missing from the extern.

Also phaser.gameobjects.Graphics should extends phaser.pixi.primitives.Graphics, which is shown at the line https://github.com/Blank101/haxe-phaser/blob/master/lib/phaser/gameobjects/Graphics.js#L82

adireddy commented 9 years ago

I fixed Graphics in my pixi.js extern https://github.com/adireddy/haxe-pixi/blob/master/src/pixi/primitives/Graphics.hx

Will raise a pull request for the same in Phaser soon.

adireddy commented 9 years ago

Raised pull request with the updates. https://github.com/Blank101/haxe-phaser/pull/35

hexonaut commented 9 years ago

This has been solved. Thanks @adireddy!