Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flame_behaviors)!: migrate to flame v1.7.0 (#43)
* feat!(flame_behaviors): migrate to flame v1.7.0 * feat(flame_behaviors)!: migrate to flame v1.7.0 * feat(flame_behaviors)!: migrate to flame v1.7.0
- Loading branch information
1 parent
4ae0553
commit 08580f6
Showing
12 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,9 @@ | |
"Hitbox", | ||
"gameplay", | ||
"collidable", | ||
"Draggables" | ||
"Draggables", | ||
"tappable", | ||
"Tappable", | ||
"hoverable" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
packages/flame_behaviors/lib/src/behaviors/input/draggable_behavior.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import 'package:flame/components.dart'; | ||
import 'package:flame/experimental.dart'; | ||
import 'package:flame_behaviors/flame_behaviors.dart'; | ||
|
||
/// {@template draggable_behavior} | ||
/// A behavior that makes an [Entity] draggable. | ||
/// | ||
/// When using this behavior, also add `HasDraggables` to your game, which | ||
/// handles propagation of drag events from the root game to individual | ||
/// behaviors. | ||
/// {@endtemplate} | ||
abstract class DraggableBehavior<Parent extends EntityMixin> | ||
extends Behavior<Parent> with Draggable {} | ||
extends Behavior<Parent> with DragCallbacks {} |
8 changes: 2 additions & 6 deletions
8
packages/flame_behaviors/lib/src/behaviors/input/tappable_behavior.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
import 'package:flame/components.dart'; | ||
import 'package:flame/experimental.dart'; | ||
import 'package:flame_behaviors/flame_behaviors.dart'; | ||
|
||
/// {@template tappable_behavior} | ||
/// A behavior that makes an [Entity] tappable. | ||
/// | ||
/// When using this behavior, also add `HasTappables` to your game, which | ||
/// handles propagation of tap events from the root game to individual | ||
/// behaviors. | ||
/// {@endtemplate} | ||
abstract class TappableBehavior<Parent extends EntityMixin> | ||
extends Behavior<Parent> with Tappable {} | ||
extends Behavior<Parent> with TapCallbacks {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters