Releases: flame-engine/flame
Releases ยท flame-engine/flame
v1.19.0
1.19.0
Note: This release has breaking changes.
- REFACTOR: Use a temp vector for delta calculations of
FollowBehavior
(#3230). (524793d4) - FIX: Add assertion when trying to set "current" that doesn't exist (#3258). (267d6801)
- FIX: Update version of lints to comply with new pub requirements (#3223). (1b0bee72)
- FIX: Replace CurvedParticle inheritance with Particle in ScaledParticle (#3221). (8cd054d0)
- FIX: Fix text rendering issue where spaces are missing (#3192). (28fd2a0f)
- FIX: Add nativeAngle to constructors where it makes sense (#3197). (e8704934)
- FIX: Wire in background and foreground colors in TextPaint (#3191). (983cfab6)
- FIX: Disallow mutatation of
SpriteGroupComponent.sprites
(#3185). (7c40034d) - FIX: Disallow mutatation of
SpriteAnimationGroupComponent.animations
(#3183). (52773407) - FEAT: Adding scale and angle to devtools attributes (#3267). (b2a5e658)
- FEAT: Adding x,y,width and height inputs to position components on Dev Tools (#3263). (003ec3a1)
- FEAT: Adding component snapshot to Dev tools (#3261). (1a574917)
- FEAT: Fixing tests on flutter 3.24.0 (#3259). (bf9a2481)
- FEAT: Loading builder for Route (#3113). (1e62b342)
- FEAT: Take in super.curve in ScalingParticle (#3220). (0fbc73cc)
- FEAT: Add
pause
andresume
toHasTimeScale
mixin (#3216). (9a86e7b5) - FEAT: Add missing background and foreground properties to InlineTextStyle (#3187). (34dde50f)
- FEAT: Support inline code blocks on markdown rich text (#3186). (67e069c0)
- DOCS: Remove
PositionType
from the docs (#3198). (b0ff5c41) - DOCS: Add dartdocs to inline text node classes (#3189). (84c1ee87)
- BREAKING REFACTOR: Make query() result an Iterable (#3209). (c094caa7)
v1.18.0
1.18.0
Note: This release has breaking changes.
- REFACTOR: Modernize switch; use switch-expressions and no break; (#3133). (b283b82f)
- FIX: Add key parameters to the rest of the components (#3170). (2477ea0f)
- FIX: Invoke
setToStart
on child effect controller of wrapping effect controllers (#3168). (217c95f0) - FIX: Fix cascading and fallback propagation of text styles (#3129). (7b706d5f)
- FEAT: Add
onReleased
action toAdvancedButtonComponent
which will be called withinonTapUp
(#3152). (2269732e) - FEAT: Support text align on new text rendering pipeline (#3147). (194d5536)
- FEAT: Add missing parameters to InlineTextStyle (#3146). (ce9392ab)
- FEAT: Expand flame_lint to respect required pub.dev checks (#3139). (6e80bf5e)
- FEAT: Add accessor to determine a TextElement size (#3130). (8a63a07a)
- FEAT: Add ability to convert between TextPaint and InlineTextStyle (#3128). (6b63a57a)
- FEAT: Add completed future for effects (#3123). (5e967deb)
- FEAT: Add custom long tap delay (#3110). (a95d7df6)
- DOCS: Update the dartdocs for
FixedResolutionViewport
(#3132). (db4b6fd6) - BREAKING FIX: Update IsometricTileMapComponent to have better defined position and size (#3142). (9a7bdc74)
v1.17.0
1.17.0
Note: This release has breaking changes.
- REFACTOR: Change the ClipComponent factory Constructor to redirect Constructor (#3089). (cc035fb4)
- FIX: Call
render
properly from nestedFlameGame
s (#3106). (cb1e3701) - FIX: CircleHitbox should properly detect when ray is outside (#3100). (8cd9e123)
- FIX: Clamp opacity set by the
ColorEffect
to 1.0 (#3069). (9282cc38) - FIX: FutureOr return type of ComponentViewportMargin.onLoad (#3059). (72678c67)
- FIX: Size for
SpriteComponent.fromImage
should be nullable (#3054). (2ed71a3c) - FIX: Check for removing state while adding a child (#3050). (3a24a51d)
- FEAT: Add onFinished callback to ScrollTextBoxComponent (#3105). (233cc94c)
- FEAT: Add
copyWith
method on theTextBoxConfig
(#3099). (b946ba70) - FEAT: Component tree for the devtools extension tab (#3094). (bf5d68e9)
- FEAT: Add PositionComponent.toString (#3095). (b1f01986)
- FEAT: Add SpriteBatch.replace to allow the replacement of the batch information (#3079). (bf3c282d)
- FEAT: Initial functionality of flame_devtools (#3061). (c92910c6)
- FEAT: Add
HasPerformanceTracker
mixin onGame
(#3043). (6270353a) - BREAKING REFACTOR: Use HasTimeScale for Route (#3064). (30fde805)
- BREAKING FIX: Removed unused parameters from SpriteWidget (#3074). (f49d24c0)
v1.16.0
v1.15.0
1.15.0
- REFACTOR: Minimize
Vector2
creation inIsometricTileMapComponent
(#3018). (5d3be313) - FIX: Set margins of
JoystickComponent
properly (#3019). (e27818d8) - FIX: Properly update sprites in SpriteButtonComponent (#3013). (23cf8b9d)
- FIX: Lifecycle completers to be called for FlameGame (#3007). (3804f524)
- FIX: CameraComponent no longer throws Concurrent modification on stop (#2997). (6a1059b0)
- FIX: Updated PolygonComponent.containsPoint to account for concave polygons (#2979). (a6fe62a2)
- FIX: Add missing generic to
ComponentViewportMargin
(#2983). (1d9fe613) - FEAT: Add support for base64 encoded images to be manually added to Images cache. (#3008). (1e56293c)
- FEAT: Make
Component.key
public (#2988). (7fbd5af9) - FEAT: Add a hitboxFilter argument to raycast() (#2968). (d7c53e23)
v1.14.0
1.14.0
Note: This release has breaking changes.
- FIX: Set hitbox
debugColor
to yellow (#2958). (6858eae0) - FIX: Consider displaced hitboxes in GestureHitboxes mixin (#2957). (1085518f)
- FIX: PolygonComponent.containsLocalPoint to use anchor (#2953). (7969321e)
- FEAT: Notifier for changing current sprite/animation in group components (#2956). (75cf2390)
- BREAKING REFACTOR: Remove the Projector interface that is no longer used for coordinate transformations (#2955). (0979dc97)
v1.13.1
v1.13.0
1.13.0
- FIX: Logic error in MemoryCache.setValue() (#2931). (8cee80c3)
- FIX: Export
ScalingParticle
(#2928). (3730cb1d) - FIX: Misalignment of the hittest area of PolygonHitbox (#2930). (db db1379)
- FIX: Allow setting
bounds
whileBoundedPositionBehavior
's target is null (#2926). (bab9be6e) - FEAT: Ability to use
selfPositioning
inSpawnComponent
(#2927). (b526aa14) - FEAT: Add
margin
andspacing
properties toSpriteSheet
(#2925) . (67f7c126) - FEAT: Add
children
toSpriteAnimationComponent.fromFrameData
([#2914](#29 14)). (caf2b909) - DOCS: Remove references to Tappable and Draggable (#2912). (d12e454 4)
v1.12.0
1.12.0
- FIX: SpriteAnimationWidget was resetting the ticker even when the playing didn't changed (#2891). (9aed8b4d)
- FEAT: Scrollable TextBoxComponent (#2901). (8c3cb725)
- FEAT: Add collision completed listener (#2896). (957db3c1)
- FEAT: Adding autoResetTicker option to SpriteAnimationGroupComponent (#2899). (001c870d)
- FEAT: Add clearSnapshot function (#2897). (d4decd21)
v1.11.0
1.11.0
Note: This release has breaking changes.
- FIX: Minor issues due Flutter 3.16 (#2856). (d51cd584)
- FIX: Properly resize ScreenHitbox when needed (#2826). (24fed757)
- FIX: Setting world on FlameGame camera setter (#2831). (3a8e2464)
- FIX: Allow null passthrough parent (#2821). (c4d2f86e)
- FIX: Do not scale debug texts with zoom (#2818). (c2f3f040)
- FIX(flame): Export
FixedResolutionViewport
and makewithFixedResolution
a redirect constructor (#2817). (3420d0e6) - FEAT: Using viewport scale on debug mode text paint (#2883). (07ef46ca)
- FEAT: Make Viewfinder and Viewport comply with CoordinateTransform interface (#2872). (685e1d95)
- FEAT: Allow sequence effect to be extended (#2864). (ee11aae9)
- FEAT: Adding children argument to all constructors in the shape components (#2862). (082743d3)
- FEAT: Optimization in sprite batch (#2861). (208d7897)
- FEAT: Add TimeTrackComponent and ChildCounterComponent (#2846). (6269551a)
- FEAT: MoveAlongPathEffect should maintain initial angle of the component (#2835). (e6e78c0d)
- FEAT: Add a method to adapt the camera bounds to the world (#2769). (87b69df6)
- FEAT: Scaling particle feature (#2830). (9faae8a2)
- BREAKING REFACTOR: Replace
Offset
withopacityFrom
andopacityTo
in ColorEffect (#2876). (0fd2662d) - BREAKING FIX: Add DisplacementEvent to fix delta coordinate transformations for drag events (#2871). (63994ebc)
Migration instructions
To specify start and end opacities for ColorEffect use the optional named
parameters opacityFrom and opacityTo. So offset.dx should be set as opacityFrom
and offset.dy should be set as opacityTo.
- If you are using DragUpdateEvent events, the devicePosition, canvasPosition,
localPosition, and delta are deprecated as they are unclear. - Use xStartPosition to get the position at the start of the drag event ("from").
- Use xEndPosition to get the position at the end of the drag event ("to").
- If you want the delta, use localDelta. it now already considers the camera
zoom. No need to manually account for that. - Now you keep receiving drag events for the same component even if the
drag event leaves the component (breaking)