mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 19:12:31 +08:00
bump version + formatting
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user