Flame Versions Save

A Flutter based game engine.

v1.16.0

1 month ago

1.16.0

Note: This release has breaking changes.

  • REFACTOR: Fix unrelated types reported by DCM (#3023). (1d020a52)
  • FIX: Vertices in PolygonComponent should subtract vertices positioning (#3040). (4f053ed7)
  • BREAKING FIX: Migrate from RawKeyEvent to KeyEvent (#3002). (330862c9)

v1.15.0

1 month ago

1.15.0

  • REFACTOR: Minimize Vector2 creation in IsometricTileMapComponent (#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

2 months ago

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

3 months ago

1.13.1

v1.13.0

3 months ago

1.13.0

v1.12.0

3 months ago

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

3 months ago

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 make withFixedResolution 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 with opacityFrom and opacityTo 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

5 months ago

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 use parent.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

5 months ago

1.9.1

v1.9.0

5 months ago

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 of high (#2733). (fc19890c)
  • FIX: Avoid creating new Vector2 in globalToLocal and localToGlobal (#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 to game.dart called from game_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 and isPaused 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 use CameraComponent (#2728). (7a3d5126)
  • BREAKING FEAT: Pause game when backgrounded (#2642). (521e56b6)
  • BREAKING FEAT: Add CameraComponent to FlameGame (#2740). (7c2f4000)