fix typos

This commit is contained in:
Liu Peng
2020-03-23 23:51:52 +08:00
parent ecdadeefe6
commit 276c7a19d5
3 changed files with 10 additions and 5 deletions

View File

@ -22,9 +22,14 @@ class MyGame extends BaseGame {
textureWidth: 48, textureHeight: 48, stepTime: 0.15);
void addAnimation() {
final animationComponent = AnimationComponent.sequenced(291, 178, 'creture.png', 18,
amountPerRow: 10, textureWidth: 291, textureHeight: 178, stepTime: 0.15,
loop: false, destroyOnFinish: true);
final animationComponent = AnimationComponent.sequenced(
291, 178, 'creture.png', 18,
amountPerRow: 10,
textureWidth: 291,
textureHeight: 178,
stepTime: 0.15,
loop: false,
destroyOnFinish: true);
animationComponent.x = (size.width - 291) / 2;
animationComponent.y = 250;