Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.12.3 #569

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish plugin

on:
workflow_dispatch:
# release:
# types: [published]
release:
types: [published]

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 3.12.2
# 3.12.3
- `RandomMovement` improvements

# 3.12.1
Expand Down
4 changes: 3 additions & 1 deletion lib/mixins/random_movement.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ mixin RandomMovement on Movement {
minDistance,
maxDistance,
checkDirectionWithRayCast,
directions,
);
if (target == null) {
_stop();
Expand Down Expand Up @@ -154,11 +155,12 @@ mixin RandomMovement on Movement {
double minDistance,
double maxDistance,
bool checkDirectionWithRayCast,
RandomMovementDirections directions,
) {
int index = 0;
while (index < 100) {
final distance = _getDistance(minDistance, maxDistance);
final direction = _getDirection(RandomMovementDirections.all);
final direction = _getDirection(directions);
final targetPosition = _getTargetPosition(direction, distance);
bool isRaycastOk = true;

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.12.2
version: 3.12.3
homepage: https://bonfire-engine.github.io
repository: https://github.com/RafaelBarbosatec/bonfire
issue_tracker: https://github.com/RafaelBarbosatec/bonfire/issues
Expand Down
Loading