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

@ -1,4 +1,6 @@
## next
## 0.14.0
- Adding Timer#isRunning method
- Adding Timer#progress getter

View File

@ -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!

View File

@ -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;

View File

@ -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);

View File

@ -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));
}
}

View File

@ -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;

View File

@ -1,4 +1,3 @@
/// Simple utility class that helps handling time counting and implementing interval like events.
///
class Timer {

View File

@ -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 <luannico27@gmail.com>
homepage: https://github.com/luanpotter/flame