change -1 to null

This commit is contained in:
Luan Nico
2018-04-29 12:33:26 -03:00
parent fa315c2db4
commit 3ef013df8b
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ class AnimationComponent extends PositionComponent {
this.height = height;
}
AnimationComponent.sequenced(width, height, String imagePath, int amount, { double textureX = 0.0, double textureY = 0.0, double textureWidth = -1.0, double textureHeight = -1.0}) {
AnimationComponent.sequenced(width, height, String imagePath, int amount, { double textureX = 0.0, double textureY = 0.0, double textureWidth = null, double textureHeight = null}) {
this.width = width;
this.height = height;
this.animation = new Animation.sequenced(imagePath, amount, textureX: textureX, textureY: textureY, textureWidth: textureWidth, textureHeight: textureHeight);