hexonaut / haxe-phaser

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

Sprite constructor update #38

Closed mathieuanthoine closed 9 years ago

mathieuanthoine commented 9 years ago

update Sprite constructor with optionnal parameters

hexonaut commented 9 years ago

Why are you removing things such as Sprite.alive and Sprite.cropRect?

mathieuanthoine commented 9 years ago

Fix made on the Sprite class, it was a wrong manipulation Fix add on Point Class

hexonaut commented 9 years ago

Thanks.

RafaelOliveira commented 9 years ago

This is not working here. In the constructor of the class Sprite the package of the class Game was removed, but it need to work.

The correct is: function new (game:phaser.core.Game, ?x:Float=0, ?y:Float=0, ?key:Dynamic, ?frame:Float);

hexonaut commented 9 years ago

Fixed. Thanks for pointing this out.