Skip to content

Commit

Permalink
increment version
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelBarbosatec committed Apr 30, 2024
1 parent 813281c commit 0aa2b9c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 20 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# 3.8.1
# 3.8.2
- Adds param `centerAnchor` in `SimpleDirectionAnimation` and `PlatformAnimations`. It's useful to correct spritesheet not centered.
- Now only handle move left or right by joystick in `SimplePlayer`.

# 3.8.0
- Adds `DamageHitbox`. Use it to do damage.
Expand Down
9 changes: 0 additions & 9 deletions example/lib/pages/mini_games/platform/fox_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ class FoxPlayer extends PlatformPlayer with HandleForces {
),
);

@override
void onJoystickChangeDirectional(JoystickDirectionalEvent event) {
if (event.directional == JoystickMoveDirectional.MOVE_LEFT ||
event.directional == JoystickMoveDirectional.MOVE_RIGHT ||
event.directional == JoystickMoveDirectional.IDLE) {
super.onJoystickChangeDirectional(event);
}
}

@override
void onJoystickAction(JoystickActionEvent event) {
if (event.event == ActionEvent.DOWN &&
Expand Down
9 changes: 0 additions & 9 deletions example/lib/pages/player/platform/simple_fox_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ class SimpleFoxPlayer extends PlatformPlayer with HandleForces {
),
);

@override
void onJoystickChangeDirectional(JoystickDirectionalEvent event) {
if (event.directional == JoystickMoveDirectional.MOVE_LEFT ||
event.directional == JoystickMoveDirectional.MOVE_RIGHT ||
event.directional == JoystickMoveDirectional.IDLE) {
super.onJoystickChangeDirectional(event);
}
}

@override
void onJoystickAction(JoystickActionEvent event) {
if (event.event == ActionEvent.DOWN &&
Expand Down
9 changes: 9 additions & 0 deletions lib/player/platform_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ class PlatformPlayer extends SimplePlayer
setupJumper(maxJump: countJumps);
}

@override
void onJoystickChangeDirectional(JoystickDirectionalEvent event) {
if (event.directional == JoystickMoveDirectional.MOVE_LEFT ||
event.directional == JoystickMoveDirectional.MOVE_RIGHT ||
event.directional == JoystickMoveDirectional.IDLE) {
super.onJoystickChangeDirectional(event);
}
}

@override
Future<void> replaceAnimation(
SimpleDirectionAnimation newAnimation, {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bonfire
description: (RPG maker) Create RPG-style or similar games more simply with Flame.
version: 3.8.1
version: 3.8.2
homepage: https://bonfire-engine.github.io
repository: https://github.com/RafaelBarbosatec/bonfire
issue_tracker: https://github.com/RafaelBarbosatec/bonfire/issues
Expand Down

0 comments on commit 0aa2b9c

Please sign in to comment.