bump version + formatting

This commit is contained in:
Luan Nico
2019-07-09 11:37:22 -03:00
parent 8696d309bb
commit 00519b0047
9 changed files with 15 additions and 13 deletions

View File

@ -11,9 +11,9 @@ void main() async {
runApp(game.widget);
Flame.util.addGestureRecognizer(TapGestureRecognizer()
..onTapDown = (TapDownDetails evt) {
game.addAnimation();
});
..onTapDown = (TapDownDetails evt) {
game.addAnimation();
});
}
class MyGame extends BaseGame {
@ -21,7 +21,8 @@ class MyGame extends BaseGame {
textureWidth: 48, textureHeight: 48, stepTime: 0.15);
void addAnimation() {
final animationComponent = AnimationComponent(100, 100, animation, destroyOnFinish: true);
final animationComponent =
AnimationComponent(100, 100, animation, destroyOnFinish: true);
animationComponent.x = size.width / 2 - 50;
animationComponent.y = 200;