From 916bbcd19e5dc62cb032b58228660847e8b4dfd1 Mon Sep 17 00:00:00 2001 From: Erick Zanardo Date: Wed, 6 Mar 2019 23:15:00 -0300 Subject: [PATCH] increasing example size --- doc/examples/aseprite/lib/main.dart | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/examples/aseprite/lib/main.dart b/doc/examples/aseprite/lib/main.dart index ff7433fbe..4e9617dd6 100644 --- a/doc/examples/aseprite/lib/main.dart +++ b/doc/examples/aseprite/lib/main.dart @@ -14,11 +14,14 @@ class MyGame extends BaseGame { _start() async { Size size = await Flame.util.initialDimensions(); - final animation = await FlameAnimation.Animation.fromAsepriteData("chopper.png", "./assets/chopper.json"); - final animationComponent = AnimationComponent(100, 100, animation); + final animation = await FlameAnimation.Animation.fromAsepriteData( + "chopper.png", + "./assets/chopper.json" + ); + final animationComponent = AnimationComponent(200, 200, animation); - animationComponent.x = (size.width / 2) - 50; - animationComponent.y = (size.height / 2) - 50; + animationComponent.x = (size.width / 2) - 100; + animationComponent.y = (size.height / 2) - 100; add(animationComponent); }