-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Version 3.0 #441
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
3.0.0
Use Flame
1.9.1
BREAKING CHANGE
BonfireWidget
:enemies
param. Usecomponents
param.decoration
param. Usecomponents
param.gameController
param. Use a Component to control your game.constructionModeColor
param. It's not necessaryonTapDown
param. It's not necessaryonTapUp
param. It's not necessaryconstructionMode
todebugMode
.Camera
improvements. Now using new Flame APICameraComponent
Collision
, now Bonfire use the Flame collision system!onCollision
,onCollisionEnd
,onCollisionStart
like Flame Documantation.BlockMovementCollision
BonfireInjector().put
now is Factory.remove extension method
followComponent
remove
JoystickMoveToPosition
. now useMoveCameraUsingGesture
withTapGesture
.mixin
MoveToPositionAlongThePath
was renamed toPathFinding
. andsetupMoveToPositionAlongThePath
tosetupPathFinding
FEATURES
Force2D
. Now we have a simple support to forces. You can adds global forces setting inBonfireWidget
usingglobalForces
param, or individual force in you component. To the component handle this forces it's need useHandleForces
mixin.AccelerationForce2D
: Apply acceleration to velocityResistenceForce2D
: Apply resistence to movement tending to stopLinearForce2D
: Apply linear force to velocityJumper
. New mixin to adds the jumper beheavor like platform games.PlatformPlayer
. Player to used in platform games.PlatformEnemy
. Enemy to used in platform games.raycastAll
,raycast
,timeScale
Pushable
mixin to handleForces.GameObject
. (It's the GameComponent using Sprite)AnimatedGameObject
. (It's the GameComponent using SpriteAnimation)FollowerGameObject
. (It's the GameObject using Follower mixin)AnimatedFollowerGameObject
. (It's the AnimatedGameObject using Follower mixin)ComponentSpawner
. #414AttackFromEnum
.BouncingObject
mixin. (experimental)initialMapZoomFit
inCameraConfig
.getZoomFromMaxVisibleTile
methodstartFollowPlayer
param inCameraConfig
.moveToPosition
inMovement
mixin.MoveCameraUsingGesture
mixin.isAnimationLastFrame
,isPaused
,pauseAnimation()
,playAnimation()
andanimationCurrentIndex
inUseSpriteAnimation
mixin.initPosition
param inCameraConfig
Sensor
improvements.UseBarLife
improvementsMovementByJoystick
improvements. AddssetupMovementByJoystick
method.Follower
mixin improvements.Vision
improvements.AutomaticRandomMovement
improvements. Adds paramdirection
to decide which direction could be the movement.KeyboardConfig
andJoystickDirectional
.keepDistance
.MoveCameraUsingGesture
mixinTapGesture
improvements. Now your receiveGestureEvent
in callbacks.DragGesture
improvements. Now your receiveGestureEvent
in callbacks.tiledjsonreader
to1.3.2
. Now support maps with encoding and compression.