mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 12:28:03 +08:00
Support line feed when create a sequenced animation from a single image source
This commit is contained in:
@ -20,6 +20,7 @@ class AnimationComponent extends PositionComponent {
|
||||
double height,
|
||||
String imagePath,
|
||||
int amount, {
|
||||
int amountPerRow,
|
||||
double textureX = 0.0,
|
||||
double textureY = 0.0,
|
||||
double textureWidth,
|
||||
@ -33,6 +34,7 @@ class AnimationComponent extends PositionComponent {
|
||||
animation = Animation.sequenced(
|
||||
imagePath,
|
||||
amount,
|
||||
amountPerRow: amountPerRow,
|
||||
textureX: textureX,
|
||||
textureY: textureY,
|
||||
textureWidth: textureWidth,
|
||||
|
||||
Reference in New Issue
Block a user