Skip to content

Commit

Permalink
Merge pull request #560 from RafaelBarbosatec/develop
Browse files Browse the repository at this point in the history
Version 3.10.4
  • Loading branch information
RafaelBarbosatec authored Oct 17, 2024
2 parents db61508 + 3ea520b commit 0fa0397
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 339 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'


jobs:
publish:
name: Publish packages
permissions:
contents: write
id-token: write # Required for authentication using OIDC
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
with:
publish: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.10.4
- Update `tiledjsonreader` to support web platform
- `DirectionAnimation` improvements

# 3.10.3
- Clean up componentes when game will removed. `onRemove`.

Expand Down
14 changes: 11 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "6.2.0"
archive:
dependency: transitive
description:
name: archive
sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
url: "https://pub.dev"
source: hosted
version: "3.6.1"
args:
dependency: transitive
description:
Expand All @@ -47,7 +55,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.10.2"
version: "3.10.4"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -435,10 +443,10 @@ packages:
dependency: transitive
description:
name: tiledjsonreader
sha256: faadb2eb207cd73d12dd4b24e7784203a975bc2ba6d115291bad1513333f8ec3
sha256: d1ed2ec7bf1025d71afe306aa67d8477db0b57b70ec10a44e6c630d445836f06
url: "https://pub.dev"
source: hosted
version: "1.3.5"
version: "1.4.0"
typed_data:
dependency: transitive
description:
Expand Down
3 changes: 1 addition & 2 deletions lib/base/base_game.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:bonfire/bonfire.dart';
import 'package:bonfire/mixins/pointer_detector.dart';
import 'package:bonfire/util/quadtree_collision/custom_has_quadtree_collision_detection.dart';
import 'package:flame/game.dart';
import 'package:flame/input.dart';
import 'package:flutter/gestures.dart';
Expand All @@ -14,7 +13,7 @@ abstract class BaseGame extends FlameGame
with
PointerDetector,
KeyboardEvents,
CustomHasQuadTreeCollisionDetection,
HasQuadTreeCollisionDetection,
HasTimeScale {
BaseGame({super.world, super.camera});
bool enabledGestures = true;
Expand Down
6 changes: 5 additions & 1 deletion lib/mixins/direction_animation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ mixin DirectionAnimation on Movement {
@override
void idle() {
super.idle();
_playIdleAnimation();
}

void _playIdleAnimation() {
switch (lastDirection) {
case Direction.left:
onPlayIdleLeftAnimation();
Expand Down Expand Up @@ -95,7 +99,7 @@ mixin DirectionAnimation on Movement {
@override
void onMount() {
super.onMount();
idle();
_playIdleAnimation();
}

Future<void> replaceAnimation(
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0fa0397

Please sign in to comment.