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.9.0 #516

Merged
merged 12 commits into from
May 18, 2024
Merged

Version 3.9.0 #516

merged 12 commits into from
May 18, 2024

Conversation

RafaelBarbosatec
Copy link
Owner

@RafaelBarbosatec RafaelBarbosatec commented May 17, 2024

  • JoystickDirectional improvements. Now you can use Alignment.
  • JoystickAction improvements. Now you can use Alignment.
  • Adds param PlayerControllerListener? observer in Joystick. If pass this param, the joystick will controll this observer and not the Component passed in player param.
  • Adds param PlayerControllerListener? observer in Keyboard. If pass this param, the keyboard will controll this observer and not the Component passed in player param.
  • Fix type BarLifeDrawPosition. #515

Breaking Changes:

  • BonfireWidget expect List<PlayerController>? playerControllers instead of joystick. With this improvements is possible pass multi ways to control de player or any component that contains the mixin PlayerControllerListener(use MovementByJoystick to move automatic by PlayerController interactions). With this improvements it's possible create a local multiplayer.
  • Removed keyboardConfig param from BonfireWidget. Now pass Keyboard instance in playerControllers.
    Example using joystick and keyboard:
  return BonfireWidget(
    map: ...,
    playerControllers: [
      Joystick(directional: JoystickDirectional()),
      Keyboard(),
    ],
    player: HumanPlayer(
      position: Vector2(100, 100),
    ),
  );

@RafaelBarbosatec RafaelBarbosatec merged commit 3309d99 into master May 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant