mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-04 04:47:13 +08:00
add loop for AnimationComponent.sequenced
This commit is contained in:
@ -25,6 +25,7 @@ class AnimationComponent extends PositionComponent {
|
||||
double textureWidth,
|
||||
double textureHeight,
|
||||
double stepTime,
|
||||
bool loop,
|
||||
this.destroyOnFinish = false,
|
||||
}) {
|
||||
this.width = width;
|
||||
@ -37,6 +38,7 @@ class AnimationComponent extends PositionComponent {
|
||||
textureWidth: textureWidth,
|
||||
textureHeight: textureHeight,
|
||||
stepTime: stepTime ?? 0.1,
|
||||
loop: loop,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user