diff --git a/CHANGELOG.md b/CHANGELOG.md index 6369c4749..fe9df3447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## next + +## 0.14.0 - Adding Timer#isRunning method - Adding Timer#progress getter diff --git a/README.md b/README.md index 779e2b0eb..f0a4289d6 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Just drop it in your `pubspec.yaml`: ```yaml dependencies: - flame: ^0.13.1 + flame: ^0.14.0 ``` And start using it! diff --git a/doc/examples/animations/lib/main.dart b/doc/examples/animations/lib/main.dart index 872a7b352..13458a457 100644 --- a/doc/examples/animations/lib/main.dart +++ b/doc/examples/animations/lib/main.dart @@ -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; diff --git a/doc/examples/aseprite/lib/main.dart b/doc/examples/aseprite/lib/main.dart index 7ab062746..7dc038c29 100644 --- a/doc/examples/aseprite/lib/main.dart +++ b/doc/examples/aseprite/lib/main.dart @@ -4,7 +4,7 @@ import 'package:flame/animation.dart' as flame_animation; import 'package:flame/components/animation_component.dart'; import 'package:flutter/material.dart'; -void main() async{ +void main() async { final Size size = await Flame.util.initialDimensions(); runApp(MyGame(size).widget); } diff --git a/doc/examples/sound/lib/main.dart b/doc/examples/sound/lib/main.dart index ebc1bf97d..8b2aec8ac 100644 --- a/doc/examples/sound/lib/main.dart +++ b/doc/examples/sound/lib/main.dart @@ -46,7 +46,6 @@ class MyGame extends BaseGame { } void _start() async { - Flame.audio.disableLog(); Flame.audio.load('boin.mp3'); Flame.audio.loop('music.mp3', volume: 0.4); diff --git a/doc/examples/timer/lib/main.dart b/doc/examples/timer/lib/main.dart index 77776ce2a..50df7fce7 100644 --- a/doc/examples/timer/lib/main.dart +++ b/doc/examples/timer/lib/main.dart @@ -39,7 +39,8 @@ class MyGame extends Game { @override void render(Canvas canvas) { - textConfig.render(canvas, "Countdown: ${countdown.current.toString()}", Position(10, 100)); + textConfig.render(canvas, "Countdown: ${countdown.current.toString()}", + Position(10, 100)); textConfig.render(canvas, "Elapsed time: $elapsedSecs", Position(10, 150)); } } diff --git a/lib/components/animation_component.dart b/lib/components/animation_component.dart index 4c5016d24..4fef421db 100644 --- a/lib/components/animation_component.dart +++ b/lib/components/animation_component.dart @@ -7,7 +7,8 @@ class AnimationComponent extends PositionComponent { Animation animation; bool destroyOnFinish; - AnimationComponent(double width, double height, this.animation, { this.destroyOnFinish = false }) { + AnimationComponent(double width, double height, this.animation, + {this.destroyOnFinish = false}) { this.width = width; this.height = height; } @@ -23,7 +24,6 @@ class AnimationComponent extends PositionComponent { double textureY = 0.0, double textureWidth, double textureHeight, - this.destroyOnFinish = false, }) { this.width = width; diff --git a/lib/time.dart b/lib/time.dart index edab43477..1fa3df0f2 100644 --- a/lib/time.dart +++ b/lib/time.dart @@ -1,4 +1,3 @@ - /// Simple utility class that helps handling time counting and implementing interval like events. /// class Timer { @@ -8,7 +7,7 @@ class Timer { double _current = 0; bool _running = false; - Timer(this._limit, { bool repeat = false, void Function() callback }) { + Timer(this._limit, {bool repeat = false, void Function() callback}) { _repeat = repeat; _callback = callback; } diff --git a/pubspec.yaml b/pubspec.yaml index 79697fa03..77c963877 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flame description: A minimalist Flutter game engine, provides a nice set of somewhat independent modules you can choose from. -version: 0.13.1 +version: 0.14.0 author: Luan Nico homepage: https://github.com/luanpotter/flame