diff --git a/app/assets/images/platform/fire.png b/app/assets/images/platform/fire.png index 8fee0eb..d0bc893 100644 Binary files a/app/assets/images/platform/fire.png and b/app/assets/images/platform/fire.png differ diff --git a/app/lib/game/flammable_decoration.dart b/app/lib/game/flammable_decoration.dart index f0c0019..34c9821 100644 --- a/app/lib/game/flammable_decoration.dart +++ b/app/lib/game/flammable_decoration.dart @@ -11,10 +11,13 @@ class FlammableDecoration extends GameDecoration with Sensor { required Vector2 position, }) : super.withAnimation( animation: PlatformSpritesheet.fire, - position: position..translate(0, -8), - size: Vector2(128 * 1.5, 128 * 1.5), + position: position..translate(0, -20), + size: Vector2(128 * 1.2, 128 * 1.2), ) {} + @override + void onContactExit(GameComponent component) => onContact(component); + @override void onContact(GameComponent component) { if (component is Player && !_onFire) { @@ -24,7 +27,7 @@ class FlammableDecoration extends GameDecoration with Sensor { PlatformSpritesheet.fireOn.then((fire) { setAnimation(fire); size = Vector2(128 * 1.5, 116 * 3); - position = position..translate(0, -116); + position = position..translate(0, -106); _onFire = true; }); } diff --git a/app/lib/game/ui/score_widget.dart b/app/lib/game/ui/score_widget.dart index faa0bc4..c1d0e74 100644 --- a/app/lib/game/ui/score_widget.dart +++ b/app/lib/game/ui/score_widget.dart @@ -13,14 +13,15 @@ class ProgressBarWidget extends StatelessWidget { listenable: controller, builder: (context, _) { return Padding( - padding: const EdgeInsets.only(left: 45, top: 60), + padding: const EdgeInsets.only(left: 40, top: 40), child: Column( children: [ Row( children: [ Text( - '${(controller.goals).toInt()}🔥 ${(controller.enemies).toInt()} 👹', - style: const TextStyle(color: Colors.yellowAccent), + '${(controller.goals).toInt()} 🔥 ${(controller.enemies).toInt()} 👹', + style: const TextStyle( + color: Colors.yellowAccent, fontSize: 20), ) ], ),