mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-12 10:28:39 +08:00
Fixed with regards to the comments
This commit is contained in:
@@ -24,7 +24,7 @@ class MyGame extends BaseGame {
|
||||
);
|
||||
final spriteSize = Vector2.all(200);
|
||||
final animationComponent = SpriteAnimationComponent(spriteSize, animation)
|
||||
..position = size / 2 - Vector2(100, 100);
|
||||
..position = size / 2 - Vector2.all(100);
|
||||
|
||||
add(animationComponent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user