Releases: RafaelBarbosatec/bonfire
Releases · RafaelBarbosatec/bonfire
Version 3.10.5
- Adds param
withDiagonal
insetupPathFinding
(PathFinding mixin) - Fix PathFinding bug. Now not consider your own collision as a barrier.
Version 3.10.4
- Update
tiledjsonreader
to support web platform DirectionAnimation
improvements
Version 2.6.1
[2.6.1]
- removed
getValueGenerator
fromBonfireGame
. Now usegenerateValues
from your component. - removed
addParticle
fromBonfireGame
. Now useaddParticle
from your component. - improvements in
ValueGeneratorComponent
- Adds effect
BonfireOpacityEffect
. - Adds support to new files of the Tiled 1.8.0 (
tmj
,tsj
) .
[2.6.0]
- Update
flame
to1.2.0
- CHANGELOG - Renamed
gameRef.overlays
togameRef.overlayManager
- Renamed
GameComponent.shouldRemove
toGameComponent.isRemoving
- Remove
showFPS
inBonfireTiledWidget
andBonfireWidget
. - Fix Camera bug in a small map that is not the size of the screen. #261
[2.5.0]
- Adds
MatrixMapGenerator
. Class that can help you create a map using a double matrix. Doc - Adds
TerrainBuilder
. Class that can help you create a map using a double matrix with Sprite. SpriteSheetModel - Adds
enabledDiagonalMovements
param inMovementByJoystick
to control if you want diagonal movements.
[2.4.4]
- Adds
scene
support. Now you can create a "cutscene" in an easy way:- Just call
gameRef.startScene([CameraSceneAction()])
. - To stop:
gameRef.stopScene()
. - SceneActions available:
CameraSceneAction
DelaySceneAction
MoveComponentSceneAction
AwaitCallbackSceneAction
- Just call
[2.4.3]
- Improvement in
JoystickMoveToPosition
. New:- adds
enabledMoveCameraWithClick
param to enable movements of the camera with click and move movements. - adds
mouseButtonUsedToMoveCamera
param to set what button of the mouse you can use to move the camera. - adds
mouseButtonUsedToMoveToPosition
param to set what button of the mouse you can use to set the position target. Default issecondary
(right mouse button).
- adds
- Extracted functions about check
Tiles
to the mixinTileRecognizer
.
[2.4.2]
- Adds params
focusNode
,autofocus
andmouseCursor
inBonfireWidget
andBonfireTiledWidget
. - Improvements in
Camera
. - BREAKING CHANGE: Update
StateController
. The methodupdate
is nowvoid update(double dt, T component)
. Now you can receive what component belongs to the update method in case that your controller is used in many components.
[2.4.1]
- Adds
removeLife
method inAttackable
. - The
offset
param from Tiled layers are now considered. - Adds type
dynamicAbove
in tile. - Adds
MiniMap
widget DOC. - Update Flame to 1.1.1.
Version 2.4.0
[2.4.0]
- Updated Flame to version 1.1.0
- Adds
addParticle(Particle particle)
ingameRef
. - Implements NPC component. Suggested by 4mitabh.
- Improvements in
Attackable
system. - Adds
checkCanReceiveDamage
method inAttackable
mixin. You can do override this method to implements your own rule that who can receive damage or not. - BREAKING CHANGES:
-
in
void receiveDamage( double damage, dynamic identify, )
Attackable
now isvoid receiveDamage( AttackFromEnum attacker, double damage, dynamic identify, )
-
[2.3.1]
- Updated example with NPCs. Thanks 4mitabh!
- Fixed 8-Direction Animation mentioned in #234. Thanks TaylorHo!
- Update example to Android embedding V2. Thanks 4mitabh!
[2.3.0]
- Fix bug in camera zoom out.
- Add
animateZoom
method inCamera
. - Add Experimental State Manager. Example here.
[2.2.5]
[2.2.4]
- Improvements in
MovementByJoystick
. - Improvements in how to access the
gameRef
from aGameComponent
. - Improvements in
ImageLayer
. - Fix issue #224 in
TalkDialog
.
[2.2.2]
- Improvements in
DirectionAnimation
mixin. - Improvements in
Movement
mixin. AddedonMove
method, which you can override to listen to component movements. - Set
dPadAngles
default value equals false inMovementByJoystick
.
[2.2.1]
- Fix
WithSpriteAnimation
.
[2.2.0]
- Improvements in performance.
- Add
Follower
mixin. - Add
WithAssetsLoader
mixin. - Add
WithSprite
mixin. - Add
WithSpriteAnimation
mixin. - Fix bug in camera movement for games with zoom applied.
- Improvements in
FlyingAttackObject
. - BREAKING CHANGE:
- Renamed
radAngleDirection
param toangle
insimpleAttackRangeByAngle
; - Renamed
animationUp
toanimation
insimpleAttackRange
andsimpleAttackRangeByAngle
. You should now use the default animation (to the right).
- Renamed
[2.1.0]
- Update
a_star_algorithm
. - Change
Offset
toVector2
inCamera.moveToPositionAnimated
. - Add
moveToPositionAnimated
incamera
. - Add
marginFromOrigin
param insimpleAttackRangeByAngle
. - Add top-down game example.
- Fix bug in
RotationPlayer
. - Improvements in Lighting mixin:
- Add types LightingType.circle and LightingType.arc;
- Add align param;
- Add lightingEnabled param.
[2.0.0]
We're striving to reduce the distance between Flame and Bonfire, relying more and more on Flame components under the hood now that it is stable. In this version we are following the standardization of using Vector2
for position
and size
and using PositionComponent
as the base for Bonfire components. Also, 'FlameGame' and the Flame's Camera are now used instead of custom implementations we had before. Some small features were lost, but nothing that the Flame's team isn't capable of adding over time.
- Update to flame 1.0.
- BREAKING CHANGE: Use
Vector2 size
instead ofdouble height
anddouble width
. - BREAKING CHANGE: Use
Vector2
instead ofOffset
andSize
. - BREAKING CHANGE:
camera.animateSimpleRotation
andcamera.animateLoopRotation
are not available anymore.
- BREAKING CHANGE: Use
- Improvements in
ObjectCollision
. Now it is possible to overrideonCollision
and returnfalse
so the object will not collide with anything or block the passage. - Add new mixin
Pushable
. - Add params
name
andid
inTiledObjectProperties
. - Add support to use Flame Effects
- Small improvements in
SimpleDirectionAnimation
- Improvements in
Lighting
- Extensions improvements
- Improvements in
GameColorFilter
- Add
left
,right
,top
,bottom
inGameComponent
- Add
enabledSensor
inSensor
SimpleDirectionAnimation
now only requiresidleRight
andrunRight
. It will automatically flip horizontally to perform the idle/run left animations. You can disable this feature setting the paramenabledFlipX
to false (default = true).enabledFlipY
is also available, but defaults to false (if you set this param to true, onlyidleUp
andrunUp
are needed).- Bug fix in
getAnimation
(ImageExtension). - Bug fix in
progress
(BonfireTiledWidget).
[1.12.3]
- Improvements in collision objects by Tiled.
[1.12.2]
- Adds support to add objects with collision by Tiled. Just add the object and set you type to
collision
. #210 - Improvements in
worldPositionToScreen
. Now considers zoom. - Improvements in
seeAndMoveToPlayer
andseeAndMoveToAttackRange
. AddsnotObserved
andobserved
.
[1.12.1]
- improvements in sprite load of the
BackgroundImageGame
. - improvements in
simpleAttackRangeByAngle
. - rename
animationTop
toanimationUp
- rename
animationBottom
toanimationDown
- improvements in
TalkDialog
Version 1.12.0
- Adds SpriteAnimation extension: method
asWidget
.(You can use this to SpriteAnimation or Future) - Adds Sprite extension: method
asWidget
.(You can use this to Sprite or Future) - Adds Support to ImageLayer in map built by Tiled. issue 76
- Adds Support to Text Object in map built by Tiled.
1.11.1
- Fix problem render Map.
1.11.0
- Improvements in
Sensor
mixin. - Add support to flip vertical, flip horizontal and rotate in Tiled. #182
- Update flame to
1.0.0-releasecandidate.17
- BRAKING CHANGE: Replace
TextPaintConfig
toTextStyle
- BRAKING CHANGE: Replace
1.10.0
- Fix #203 - Web build with late initialisation on animations
- Create interfaces to facility access methods of the
ColorFilter
andLighting
. - Add
replaceAnimation
method inDirectionAnimation
. now you can use this method in SimplePlayer or Enemy to replaceSimpleDirectionAnimation
. - Now gameRef is
BonfireGameInterface
. - Improvements in SimpleDirectionAnimation.
- BREAKING CHANGE:
- rename
gameRef.changeJoystickTarget
togameRef.addJoystickObserver
- remove
gameRef.addComponent
. now usegameRef.add
orgameRef.addAll
- rename
1.9.10
- Fix problem render big tilesets #200.
1.9.9
- Add
dismissible
param inTalkDialog.show
to avoid the dialogue being dismissed when the back button is pressed or esc key is pressed on desktop. - Add
animateLoopRotation
method in camera. - Rename
animateRotate
toanimateSimpleRotation
. - Improvements in rotation effect.
1.9.8
- Fix rounding of movement in
MoveToPositionAlongThePath
. - Fix loaded map by url.
1.9.7
- Improvements in
TalkDialog.show
: addonClose
. - Add rotation functionality to the camera. Set
angle
onCameraConfig
oranimateRotate
to rotate the camera view
1.9.6
- Fix bug "getting stuck" in
MoveToPositionAlongThePath
- [BREAKING CHANGE] Change param
logicalKeyboardKeyToNext
inTalkDialog
tologicalKeyboardKeysToNext
, now multiple keys are accepted to advance in the dialogue - Add option
wasdAndArrows
toKeyboardDirectionalType
allowing both arrows and wasd keys to control the joystick - Improvements in diagonal movements in
MoveToPositionAlongThePath
1.9.5
- Update params name of
simpleAttackMelee
in Enemy. - Improvements in
MoveToPositionAlongThePath
1.9.4
- Small improvements in map loading.
- Adds
angle
param inGameComponent
to rotate component render.
1.9.3
- Update flame to
1.0.0-releasecandidate.16
1.9.2
- Fix onGameResize. It works again when the window size is changed
1.9.1
- Correction of loading visible collisions on the map.
- Adds a simple example.
1.9.0
- Update flame to
1.0.0-releasecandidate.15
- Adds methods
changeJoystickTarget
in BonfireGame to make it easy to switch the default joystick events watcher. - [BREAKING CHANGE] Component
remove()
method was replaced byremoveFromParent()
. Use it to remove a component from the game. - [BREAKING CHANGE] Improvements in Keyboard events. Removed params
keyboardEnable
andkeyboardDirectionalType
inJoystick
. Set these attributes throughkeyboardConfig
. - [BREAKING CHANGE] gameRef.components changed to gameRef.children.
1.8.1
- Adds
Focus
inCustomGameWidget
to remove "system ding" in MACOS. - Updates
moveToTarget
method inCamera
to receive null; - Add optional list of objects to
moveToPositionAlongThePath
for ignoring visible collisions
1.8.0
- Bugfix/quadtree id for removal #178
- Adds
keyboardDirectionalType
param inJoystick
to enable WASD.
1.7.0
- adds
FollowerWidget
. With this you can add a widget what follows a component in the game. - update
a_star_algorithm
. now enables diagonal movements.
1.6.1
- fixed the flame version to
1.0.0-releasecandidate.13
while we fixed the flame update crash change.
Version 1.6.0
1.6.0
- adds
getScreenPosition
method inGameComponent
. - adds
enableDiagonal
param insimpleAttackRange
. - adds
visibleComponentsByType
andcomponentsByType
inBonfireGame
. - adds
onTapDown
andonTapUp
inBonfireTiledWidget
andBonfireWidget
. - remove method
isVisibleInCamera()
inGameComponent
. Now use theisVisible
param to check if this component is visible in camera. - improvements in order of the update of
Camera
- add
QuadTree
data struct to search of the visible Tiles. - update
ordered_set
- improvements in
Camera
- improvements in
AnimatedObjectOnce
- improvements in
CameraConfig -> moveOnlyMapArea
- improvements in
Lighting
- adds "Smooth" effect in camera. To enable:
BonfireTiledWidget(
...
cameraConfig: CameraConfig(
smoothCameraEnable: true,
),
);
- fix bug in
TapGesture
- fix error Tile of
above
type. - improve player joystick movement #157
- enables remove tiles of map.
- fix position translation on diagonal movement of FlyingAttackObject #155
- improvements performance
- Add
shake
method inCamera
. - Improvements in
TiledMap
. - [BREAKING CHANGE] Refactor
TalkDialog
core to allow RichText animations:
Now everySay
requires atext
param which takes aList<TextSpan>
instead of a String. - Add param
speed
toTalkDialog
. - Improvements in cache system to load map.
- add param
tileSizeToUpdate
to configure interval of the update map. - Improvements in
Camera
- Improvements in
MapWorld
to support large maps. - [BREAKING CHANGE] change
List<Tile>
toList<TileModel>
to create manual maps see example. - Improvements in
LightingComponent
- Improvements in
TalkDialog
. #136 - update
a_star_algorithm
Version 1.3.5
- Add param
opacity
inGameComponent
to control opacity. - Update
tiledjsonreader
- Adds support to folders(group) in Tiled
- Improvements in extensions organization.
- Update Flame to
1.0.0-releasecandidate.13
version. - Replace
HasGameRef
for the ownBonfireHasGameRef
. - little improvement in
drawDefaultLifeBar
. - create mixin
AutomaticRandomMovement
- add
onReady
inBonfireTiledWidget
andBonfireWidget
- add
getComponentDirectionFromMe
inGameComponentExtensions
- add
checkInterval
inGameComponent
- new extensions to
GameComponent
. - new extensions to
Movement
. - new extensions to
Attackable
. - Makes Bonfire more modular. Every kind of behavior has become a mixin.
- improvements in
constructionMode
- improvements in
drawDefaultLifeBar
- performance improvements
- add property
backgroundColor
inTalkDialog
. - performance improvements in
TiledWorldMap
Version 1.2.0
1.2.0
- add
MouseGesture
mixin to listen mouse gestures see documentation - add method
worldPositionToScreen
inBonfireGame
. - add method
screenPositionToWorld
inBonfireGame
. - add method
isVisibleInCamera
inBonfireGame
. - Improvements in
TextInterfaceComponent
- Improvements in
GameComponent
- Improvements in
SimpleDirectionAnimation
- update
tiledjsonreader
- update
flame
- Improvements in
SimpleDirectionAnimation
- Improvements in
generateRectWithBleedingPixel
- blocks paths off screen in
MoveToPositionAlongThePath
- create function
overlap
toImage
. - new improvements in
MoveToPositionAlongThePath
- Update
tiledjsonreader
- Improvements in
MoveToPositionAlongThePath
- Fix bug of the issue #115
- Fix bug
TalkDialog
. - Fix bug Animations in
SimplePlayer
andSimpleEnemy
. - Update
Flame
to1.0.0-releasecandidate.11
version. - [BREAKING CHANGE] improvements in
objectsBuilder
andregisterObject
to register objects inTiledWorldMap
.TiledWorldMap( 'tiled/map.json', forceTileSize: Size(32, 32), objectsBuilder: { 'goblin': (ObjectProperties properties) => Goblin(properties.position), 'torch': (ObjectProperties properties) => Torch(properties.position), 'barrel': (ObjectProperties properties) => BarrelDraggable(properties.position), 'spike': (ObjectProperties properties) => Spikes(properties.position), 'column': (ObjectProperties properties) => ColumnDecoration(properties.position), 'chest': (ObjectProperties properties) => Chest(properties.position), }, )
- [BREAKING CHANGE] change
TextConfig
toTextPaintConfig
- adds method
tilePropertiesBelow()
andtilePropertiesListBelow()
in GameComponent to access proprieties of the tile set in Tiled. - adds method
void onCollision(GameComponent component, bool active)
inObjectCollision
. Now you can override this method to listen what Component enter in collision. - improvements in
BonfireGame
- improvements in
TalkDialog
. - Adds type
above
in tiled to render above components - update
tiledjsonreader
- improvements in
Camera
- Adds param
objectsBuilder
inTiledWorldMap
- others improvements
- Downgrade flame version to 1.0.0-rc9
- Fix
SimpleDirectionAnimation
Version 1.0.0
1.0.0
- Improvements in
SimpleDirectionAnimation
- Improvements in
Collision
- Update
http
1.0.0-rc7
- fix bug animation to up in
SimpleEnemy
1.0.0-rc6
- remove comments in
FlyingAttackAngleObject
(bug) - improvements in
Camera
.
1.0.0-rc5
- Rename params in
simpleAttackMelee
- new improvements to use
TapGesture
andDragGesture
together. - improvements in
Joystick
(KEYBOARD) to adds diagonal movement with directional. - improvements in
moveToPosition
of the Player.
1.0.0-rc4
- BREAKING CHANGE: add Shapes(circle,rectangle,polygon) to use collisions.
- fix to use
TapGesture
andDragGesture
together. - Improvements in mixin
Sensor
. - Improvements in
TalkDialog
.
1.0.0-rc3
- Improvement in
simpleAttackMelee
- Improvement in
InterfaceComponent
whenselectable
enable
1.0.0-rc2
- Improvement in layer priority.
- Improvement in
Camera
whenmoveOnlyMapArea
enable. - Fix bug
animation.playOnce
in Player and Enemy - Fix bug
addAction
inJoystick
- Fix bug
seePlayer
inGameDecoration
1.0.0-rc1
- Fix bug in
cameraMoveOnlyMapArea
- Add
CameraConfig
inBonfireTiledWidget
andBonfireWidget
1.0.0-rc0
- Update Flame to 1.0.0-rc9
- Add null-safety
- Add support to use overlays of the Flame.
- BREAKING CHANGE: All params
Sprite
in components becomeFuture<Sprite>
. - BREAKING CHANGE: All params
Animation
in components becomeFuture<SpriteAnimation>
. - BREAKING CHANGE: To configure
Lighting
usesetupLighting(LightingConfig())
. - BREAKING CHANGE: Removed the
Position
class. Now useVector2
. - WARN (Render priority): The only components that have fixed rendering priority are:
MapGame
andBackgroundColorGame
. All others render with priority according to the component's position on the Y axis. - Update support tiled to 1.5.0.
- Rename enum values in
Direction
. - Rename values in
SimpleDirectionAnimation
. - Improvements in
InterfaceComponent
. Now can be selectable. - Others improvements.
Version 1.0.0-rc5
- Rename params in
simpleAttackMelee
- new improvements to use
TapGesture
andDragGesture
together. - improvements in
Joystick
(KEYBOARD) to adds diagonal movement with directional. - improvements in
moveToPosition
of the Player. - BREAKING CHANGE: add Shapes(circle,rectangle,polygon) to use collisions.
- fix to use
TapGesture
andDragGesture
together. - Improvements in mixin
Sensor
. - Improvements in
TalkDialog
. - Improvement in
simpleAttackMelee
- Improvement in
InterfaceComponent
whenselectable
enable - Improvement in layer priority.
- Improvement in
Camera
whenmoveOnlyMapArea
enable. - Fix bug
animation.playOnce
in Player and Enemy - Fix bug
addAction
inJoystick
- Fix bug
seePlayer
inGameDecoration
- Fix bug in
cameraMoveOnlyMapArea
- Add
CameraConfig
inBonfireTiledWidget
andBonfireWidget
- Update Flame to 1.0.0-rc9
- Add null-safety
- Add support to use overlays of the Flame.
- BREAKING CHANGE: All params
Sprite
in components becomeFuture<Sprite>
. - BREAKING CHANGE: All params
Animation
in components becomeFuture<SpriteAnimation>
. - BREAKING CHANGE: To configure
Lighting
usesetupLighting(LightingConfig())
. - BREAKING CHANGE: Removed the
Position
class. Now useVector2
. - WARN (Render priority): The only components that have fixed rendering priority are:
MapGame
andBackgroundColorGame
. All others render with priority according to the component's position on the Y axis. - Update support tiled to 1.5.0.
- Rename enum values in
Direction
. - Rename values in
SimpleDirectionAnimation
. - Improvements in
InterfaceComponent
. Now can be selectable. - Others improvements.