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.0 #441

Merged
merged 359 commits into from
Oct 11, 2023
Merged

Version 3.0 #441

merged 359 commits into from
Oct 11, 2023

Conversation

RafaelBarbosatec
Copy link
Owner

@RafaelBarbosatec RafaelBarbosatec commented Oct 2, 2023

3.0.0

  • Use Flame 1.9.1

  • BREAKING CHANGE

    • BonfireWidget:

      • Remove enemies param. Use components param.
      • Remove decoration param. Use components param.
      • Remove gameController param. Use a Component to control your game.
      • Remove constructionModeColor param. It's not necessary
      • Remove onTapDown param. It's not necessary
      • Remove onTapUp param. It's not necessary
      • Rename constructionMode to debugMode.
    • Camera improvements. Now using new Flame API CameraComponent

    • Collision, now Bonfire use the Flame collision system!

      • To adds Collision in your GameComponent just adds a ShapeHitbox. See this doc
      • You can listen the collision callbacks doing override of onCollision, onCollisionEnd, onCollisionStart like Flame Documantation.
      • To block the movement of components when colliding use the mixin BlockMovementCollision
    • BonfireInjector().put now is Factory.

    • remove extension method followComponent

    • remove JoystickMoveToPosition. now use MoveCameraUsingGesture with TapGesture.

    • mixin MoveToPositionAlongThePath was renamed to PathFinding. and setupMoveToPositionAlongThePath to setupPathFinding

  • FEATURES

    • Force2D. Now we have a simple support to forces. You can adds global forces setting in BonfireWidget using globalForces param, or individual force in you component. To the component handle this forces it's need use HandleForces mixin.
      • AccelerationForce2D: Apply acceleration to velocity
      • ResistenceForce2D: Apply resistence to movement tending to stop
      • LinearForce2D: Apply linear force to velocity
    • Jumper. New mixin to adds the jumper beheavor like platform games.
    • PlatformPlayer. Player to used in platform games.
    • PlatformEnemy. Enemy to used in platform games.
    • Adds at gameRef: raycastAll, raycast, timeScale
    • Update Pushable mixin to handleForces.
    • Adds GameObject. (It's the GameComponent using Sprite)
    • Adds AnimatedGameObject. (It's the GameComponent using SpriteAnimation)
    • Adds FollowerGameObject. (It's the GameObject using Follower mixin)
    • Adds AnimatedFollowerGameObject. (It's the AnimatedGameObject using Follower mixin)
    • Adds ComponentSpawner. #414
    • Adds WORLD in AttackFromEnum.
    • Adds BouncingObject mixin. (experimental)
    • Adds initialMapZoomFit in CameraConfig.
    • Adds getZoomFromMaxVisibleTile method
    • Adds startFollowPlayer param in CameraConfig.
    • Adds moveToPosition in Movement mixin.
    • Adds MoveCameraUsingGesture mixin.
    • Adds isAnimationLastFrame, isPaused, pauseAnimation(), playAnimation() and animationCurrentIndex in UseSpriteAnimation mixin.
    • Adds initPosition param in CameraConfig
    • Fix issue 417. Thanks Matt El Mouktafi
    • Sensor improvements.
    • UseBarLife improvements
    • MovementByJoystick improvements. Adds setupMovementByJoystick method.
    • Follower mixin improvements.
    • Vision improvements.
    • AutomaticRandomMovement improvements. Adds param direction to decide which direction could be the movement.
    • Add an option for using to enable diagonal input events on KeyboardConfig and JoystickDirectional.
    • Adds keepDistance.
    • AddsMoveCameraUsingGesture mixin
    • TapGesture improvements. Now your receive GestureEvent in callbacks.
    • DragGesture improvements. Now your receive GestureEvent in callbacks.
    • update tiledjsonreader to 1.3.2. Now support maps with encoding and compression.

@RafaelBarbosatec RafaelBarbosatec merged commit 2c01867 into master Oct 11, 2023
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

3 participants