Releases: flame-engine/flame
Releases Β· flame-engine/flame
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)
v1.10.0
1.10.0
- REFACTOR: Remove unnecessary 'async' keyword across the codebase [DCM] (#2803). (2dfe0e5a)
- REFACTOR: Avoid nested conditional expressions whenever possible [DCM] (#2784). (7b6a5712)
- REFACTOR: Mark semantically final variables as final (or const) proper [DCM] (#2783). (71f7b475)
- FIX: Remove deprecations for 1.10.0 (#2809). (5b67b8f1)
- FIX: Un-register component keys down the component tree (#2792). (0f679b3f)
- FIX: AlignComponent set child (remove compare) (#2774). (20aaf656)
- FIX: Hardcode initCurrentGame lifecycle state as resumed (#2775). (0cd5037c)
- FIX: Fix TextBoxComponent alignment bug (#2781). (0fb53efb)
- FIX(flame): The
component.removeFromParent
method should useparent.remove
internally (#2779). (bdb1c79a) - FIX: Take unmounted adds into consideration (#2770). (be28a440)
- FEAT: Add
IgnoreEvents
mixin to ignore events for the whole subtree (#2811). (313411c3) - FEAT: Add advanced button component (#2742). (97fff0ed)
- FEAT: Introduce the
FixedResolutionViewport
(#2796). (4c762f94) - FEAT: AssetsBundle can be customized in Images and AssetsCache. (#2807). (a23f80e9)
- FEAT: Backdrop (static backgrounds) component for CameraComponent (#2787). (ab329f71)
- FEAT: Align component refactoring (#2767). (bde34efe)
- DOCS: Remove last broad cSpell bypass regex and fix all violations (#2802). (9b16b178)
v1.9.1
v1.9.0
1.9.0
- REFACTOR: Enable DCM linting (#2667). (27a8fd61)
- REFACTOR: Fix lint issues across the codebase - Part 2 (#2677). (10e4109c)
- FIX: Prevent
onRemove
/onDetach
being called for initial Gesture Detector addition (#2653). (d1721464) - FIX: Use root game for gestures (#2756). (f5d0cb38)
- FIX: Add possibility to remove a child and add it to the same parent (#2755). (285d31ab)
- FIX: Adding scale parameter to RectangleComponent constructors (#2730). (173908d9)
- FIX: Set
CameraComponent.priority
to max (#2732). (820ece1c) - FIX: Change to
FilterQuality.medium
instead ofhigh
(#2733). (fc19890c) - FIX: Avoid creating new
Vector2
inglobalToLocal
andlocalToGlobal
(#2727). (9fb3bf8d) - FIX: Ambiguation is not needed in render box anymore (#2711). (b3d78f58)
- FIX: HasGameReference should default to FlameGame (#2710). (93dcb3a1)
- FIX: Make
debugCoordinatesPrecision
into a variable instead of a getter (#2713). (9918c051) - FIX: Absolute angle takes into account BodyComponent ancestors too (#2678). (75aee767)
- FEAT: SpawnComponent (#2709). (83f5ea45)
- FEAT: Add globalToLocal and localToGlobal methods to viewport, viewfinder and camera (#2720). (00185a3b)
- FEAT: Add HoverCallbacks (#2706). (d460b846)
- FEAT: Add
onDispose
togame.dart
called fromgame_widget.dart
(#2659). (2f44e483) - FEAT(flame): Add helper methods to create frame data on
SpriteSheet
(#2754). (47722199) - FEAT: Implement Snapshot mixin on PositionComponent (#2695). (c1ee24a2)
- FEAT: Add TextElementComponent (#2694). (10fb65f6)
- FEAT: Component visibility (HasVisibility mixin) (#2681). (76405daf)
- FEAT: Add
HasWorldReference
mixin (#2746). (9105411d) - FEAT: Add
pause
andisPaused
to SpriteAnimationTicker (#2660). (37271f5c) - DOCS: Improve documentation around SpriteFontTextFormatter (#2661). (8401c569)
- DOCS: Improved spellchecking (#2722). (2f973abe)
- DOCS: Enable CSpell on tests (#2723). (e051298c)
- DOCS: Improve comments and documentation for text-rendering Nodes (#2662). (96978e24)
- DOCS: Fix examples for v1.9.0 (#2757). (152fbb61)
- BREAKING REFACTOR: Rename (Text) Elements, Nodes and Styles for clarity, add docs (#2700). (4b420b79)
- BREAKING REFACTOR: Extract TextRendererFactory (#2680). (eeb6749f)
- BREAKING REFACTOR: Make TextElement more usable on its own (#2679). (1a64443c)
- BREAKING REFACTOR: Simplify text rendering pipeline (#2663). (34f69b95)
- BREAKING REFACTOR: Kill TextRenderer, Long Live TextRenderer (#2683). (a1cb9a06)
- BREAKING FIX: Update should be called before render in first tick (#2714). (51932c09)
- BREAKING FEAT: Move
Forge2DGame
to useCameraComponent
(#2728). (7a3d5126) - BREAKING FEAT: Pause game when backgrounded (#2642). (521e56b6)
- BREAKING FEAT: Add CameraComponent to FlameGame (#2740). (7c2f4000)
v1.8.2
1.8.2
- PERF: Improve performance of raycasts (#2617). (8e0a7879)
- FIX: Reset _completeCompleter in ticker (#2636). (a35d3a10)
- FIX: Viewport should recieve events before the world (#2630). (e852064e)
- FIX: Use
ComponentKey
s to keep track of dispatchers (#2629). (ff59aa15) - FIX: FlameGame onRemove fix to prevent memory leak (#2602). (dac2ebbf)
- FIX: Only use pre-set ReadonlySizeProvider for sizing in HudMarginComponent (#2611). (832c0510)
- FIX: TextBoxConfig dismissDelay to not be ignored (#2607). (1567b389)
- FEAT: Adding key argument to shape components (#2632). (c542d3c3)
- FEAT: Add optional world input to
CameraComponent.canSee
(#2616). (1cad0b23) - FEAT: Add a Circle.fromPoints utility method (#2603). (a83f2815)
- FEAT: Add a midpoint getter to LineSegment (#2605). (1f9f3509)
- FEAT: Add Rectangle.fromLTWH and Rect.toFlameRectangle utility methods (#2604). (76271cee)
- DOCS: Add more guidance to collision detection algorithm choices (#2624). (781e8983)
- BREAKING PERF: Pool
CollisionProspect
s and remove some list creations from the collision detection (#2625). (e430b6cd) - BREAKING FEAT: Make world nullable in
CameraComponent
(#2615). (14f51635)
v1.8.1
1.8.1
- FIX: Adds a check to confirm the component is not loaded (#2579). (985400f2)
- FIX: Animation ticker readability improvements (#2578). (667a1698)
- FIX: Remove
mustCallSuper
fromonComponentTypeCheck
(#2561). (bcae760c) - FIX: Update sdk constraints to >=3.0.0 (#2554). (2f71e06e)
- FIX: Reduce the Vector2 creations in Anchor (#2550). (5a9434b0)
- FIX: Fix disappearing text on TextBoxComponent for larger pixelRatios (#2540). (6e1d5466)
- FEAT: Option to prevent propagating collision events from ShapeHitbox to _hitboxParent (#2594). (a58d7436)
- FEAT: Adding filterQuality arguments to Parallax load methods (#2596). (ff3d9107)
- FEAT: Option to use toImageSync in ImageComposition class (#2593). (66d5f97d)
- FEAT: ComponentKey API (#2566). (b3efb612)
- FEAT(flame): Set a default negative priority on the world for general use (#2572). (390e9700)
- FEAT: Add useful methods to Rectangle class (#2562). (4710530b)
- FIX: Convert PositionEvent.canvasPosition to local coordinates (#2598). (87139c85)