mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
change -1 to null
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user