Releases: flame-engine/flame
v1.6.0
flame
- v1.6.0
- PERF: Avoid Vector2 creation in
Sprite.render
(#2261). (736733d9) - FIX: Only use initialized game for tests and remove setMount from onGameResize (#2246). (2a0f1d4b)
- FIX: Re-use paint object in ImageParticle (#2210). (7a945d96)
- FIX: Depend on test: any for flame_test (#2207). (acfd418d)
- FEAT: Add a
canSee
method to theCameraComponent
(#2270). (2347c8f5) - FEAT: Add
moveBy
toCameraComponent
(#2269). (51e54ebe) - FEAT: Added computed property CameraComponent.visibleWorldRect (#2267). (f4b0e73f)
- DOCS: Update example to not create Rect objects (#2254). (a306338b)
- DOCS: Teh -> the (#2225). (ff7f36d0)
- BREAKING REFACTOR: The method
onLoad()
now returnsFutureOr<void>
(#2228). (d898b539) - BREAKING FEAT: Adds new route methods
pushReplacement
,pushReplacementNamed
, andpushReplacementOverlay
(#2249). (a2772b4e)
v1.5.0
v1.5.0
- REFACTOR: OpacityEffect now uses opacity instead of alpha internally (#2064). (b3b67301)
- REFACTOR: Game render box cleanup (#1691). (60a5830d)
- FIX: Event mixins missing
@mustCallSuper
(#2036). (c26d5da3) - FIX: SpeedController advance() should execute after its effect's onStart() (#2173). (7a1e2e8b)
- FIX: Refresh vertices on size change of
RectangleComponent
(#2167). (4020d68b) - FIX: Fix coordinate system calculation in FixedAspectRationViewport (#2175). (c9c9881c)
- FIX: SpriteButtonComponent missing
@mustCallSuper
added (#2001). (45a9d79b) - FIX: Focus handling with a scope on the
GameWidget
(#1725). (d1cd8517) - FIX: RemoveEffect should work within SequenceEffect (#2110). (03e1f33d)
- FIX: #1966 unit test for
Particles
(#2097). (59bd7ebb) - FIX: OpacityEffect custom paint override (#2056). (fe9d4d9b)
- FIX: #1998 (#2013). (f63711dc)
- FIX: solid circles and polygons intersection (#2067). (62c5c2e1)
- FIX: #2017 (#2039). (7f546b0f)
- FIX: Exception when having multiple calls to dispose() function of a Svg instance (#2085). (a287904e)
- FIX: Add missing hitbox parameters (#2070). (8aacb555)
- FIX: Change
Vector2.zero()
toVector2(0, -1)
inVector2Extensions.fromRadians()
(#2016). (801c683c) - FEAT: Add children to
World
constructor (#2093). (3af416dc) - FEAT: Add paint layers to HasPaint and associated component renders (#2073). (9e6bf4fb)
- FEAT: Add SizeProvider to clip_component and custom_paint_component. (#2100). (bb710646)
- FEAT: Added HasGameReference mixin (#1828). (12ce270b)
- FEAT: Added toString method to all the drags events message handlers (#2014). (a34f1df7)
- FEAT: Add
maintainState
property to Route (#2161). (576ceaac) - FEAT: add onCancelled to ButtonComponent and HudButtonComponent (#2193). (e7f08906)
- FEAT: onComponentTypeCheck support for ShapeHitbox (#1981). (f840210b)
- FEAT: Added glow effect using maskFilter (#2129). (bcecd3c1)
- FEAT: Add support for styles propagating through the text node tree (#1915). (b5780d42)
- FEAT: Added SpriteFont class (#1992). (a0d7eada)
- FEAT: Added CameraComponent.withFixedResolution() constructor (#2176). (e289f118)
- FEAT: Add optional maxDistance to raycast (#2012). (6b78b10f)
- FEAT:
clampLength
forVector2
extension (#2190). (51a896b2) - FEAT: Adding onChildrenChanged (#1976). (3d043b86)
- FEAT: Adding ComponentNotifier API (#1889). (bd7f51f5)
- FEAT:
removed
future +isRemoved
field forComponent
(#2080). (9f322785) - BREAKING FIX: Correct coordinate system for a circular viewport (#2174). (93dc4325)
- BREAKING FIX: PolygonComponent no longer modifies _vertices (#2061). (8cd4793a)
- BREAKING FEAT: Add OpacityProvider (#2062). (0255cc32)
v1.4.0
1.4.0
Note: This release has breaking changes.
-
REFACTOR: move broadphase-related functionality into separate subdir (#1943). (f23acd41)
-
REFACTOR: used simpler and more implicit widgets in GameWidget (#1862). (44d17c64)
-
PERF: SpriteAnimationWidget will re-render only when needed (#1876). (bb678301)
-
FIX: Hitbox children of a CompositeHitbox to return correct parent (#1922). (d518705e)
-
FIX: OpacityEffect rounding error calculation (#1933). (4cfcfa64)
-
FEAT: Make
_ButtonState
public for SpriteButtonComponent (#1941). (e80412c5) -
FEAT: Add possibility for solid hitboxes (#1919). (205ac561)
-
FEAT: Adding callbacks for EffectController (#1926) (#1931). (8dcdf155)
-
FEAT: Add lookAt method for PositionComponent (#1891). (720c3566)
-
FEAT: add applyLifespanToChildren to Particle generate (#1911). (884d5190)
-
FEAT: Add broadphase generics to CollisionDetection (#1908). (f7714122)
-
FEAT: Add support for isometric staggered maps (#1895). (96be8408)
-
FEAT: RecycledQueue now supports modification during iteration (#1884). (01b59493)
-
FEAT: Allow children of
ComposedParticle
to have varied lifespan (#1879). (6db519ec) -
FEAT: Possibility to ignore hitboxes for ray casting (#1863). (b22bc643)
-
DOCS: Added Style Guide and Test Writing Guide (#1897). (999caca1)
-
BREAKING FIX: Make all
ComponentSet
modifications internal (#1877). (f26a066d)
Migration instructions:
For most methods Component has the corresponding methods directly on it already.
For example, instead of using component.children.addAll you should do component.addAll. -
BREAKING CHORE: Remove functions/classes that were scheduled for removal in v1.3.0 (#1867). (00ab347c)
For each deleted function/method/class, the deprecation comment already specifies what functionality should be used instead.
v1.3.0
flame
- v1.3.0
- REFACTOR: Use new "super"-constructors in ShapeComponents (#1752). (b69e8d85)
- REFACTOR: Game is now a class, not a mixin (#1751). (5225a4eb)
- PERF: Use TextElements within the TextComponent (#1802). (7b044430)
- PERF: Avoid unnecessary copy in AssetsCache.readBinaryFile (#1749). (7e79638d)
- FIX: ButtonComponent behavior when the engine is paused (#1726). (197e63d6)
- FIX: Correct flutter constraint (#1731). (c7383843)
- FIX: World component can now be queried with
componentsAtPoint
(#1739). (f750d705) - FIX: Merge basic and advanced gesture detectors (#1718). (f08f8e12)
- FIX: Correct key events in GameWidget.controller (#1745). (01ed2ec9)
- FIX: Camera incorrect follow with zoom and world boundaries. (c1756177)
- FIX: Add missing paint arguments on shapes (#1727). (e59f3428)
- FIX: Delay camera update (#1811). (a5598a8f)
- FIX: Overlays can now be properly added during onLoad (#1759). (9f35b154)
- FIX: SpriteAnimationWidget can now be update animation safely (#1738). (eb070195)
- FIX: JoystickComponent drags using the delta Viewport (#1831). (54e40de6)
- FIX: Specify size for the SpriteWidget (#1760). (82f75fcb)
- FEAT: New colours to pallete.dart (#1783). (85cd60e1)
- FEAT: add
children
argument toSpriteComponent.fromImage
(#1793). (80a63362) - FEAT: Added Decorator class and HasDecorator mixin (#1781). (8d00847c)
- FEAT: Added TextFormatter classes (#1720). (c44272be)
- FEAT: Move to Flutter 3.0.0 and Dart 2.17.0 (#1713). (2a41d0d6)
- FEAT: Added Rotate3DDecorator (#1805). (f05194c8)
- FEAT: Added Shadow3DDecorator (#1812). (0a41b2da)
- FEAT: Add tertiary tap detector mixin (#1815). (e9e7b0d5)
- FEAT: Add
Ray2
class to be used in raytracing/casting (#1788). (26196c01) - FEAT: Added RouterComponent (#1755). (24092bd7)
- FEAT: Structured text and text styles (#1830). (bfdc3a29)
- FEAT: Drag events that dispatch using componentsAtPoint (#1715). (10669c12)
- FEAT: Added routes that can return a value (#1848). (f1b276e0)
- FEAT: PositionComponent now has a built-in Decorator (#1846). (8dd52c33)
- FEAT: add
HasAncestor
mixin (#1711). (987a44f4) - FEAT: Added ability to control overlays via the RouterComponent (#1840). (e2de70c9)
- FEAT: Add vector projection and inversion (#1787). (d197870f)
- DOCS: Klondike tutorial, part 4 (#1740). (02d0b71b)
- BREAKING REFACTOR: Matcher closeToVector() now accepts Vector2 as an argument (#1761). (c5083501)
- BREAKING PERF: Game.images/assets are now same as Flame.images/assets by default (#1775). (0ccb0e2e)
- BREAKING FEAT: Raycasting and raytracing (#1785). (ed452dd1)
v1.2.1
- REFACTOR: Organize Component class (#1608). (069294f4)
- REFACTOR: Remove unecessary copy operation on Camera (#1708). (94cc115a)
- REFACTOR: Update and guarantee consistency on mocktail dev dependency version across repo (#1701). (f4a98878)
- REFACTOR: Add onComplete as optional parameter (#1686). (4ca65f8a)
- REFACTOR: Added MultiDragListener - common API between HasDraggables and MultiTouchDragDetector (#1668). (801dbba1)
- REFACTOR: Simplify Component.firstChild, .lastChild, and .findParent (#1673). (84f2f57e)
- REFACTOR: Replace some usages of fold<> with .sum (#1670). (dd05ecb6)
- REFACTOR: Deprecate ComponentSet.createDefault() (#1676). (f37e3a20)
- REFACTOR: Simplify HudButtonComponent (#1647). (30d84b7c)
- REFACTOR: Component's lifecycle futures moved into LifecycleManager (#1613). (39201c40)
- REFACTOR: TextRenderer and TextPaint moved to separate files (#1628). (5e1f5966)
- REFACTOR: Move to package imports (#1625). (843ddc36)
- REFACTOR: Improve tests (#1609). (f33b3986)
- FIX: Fix tile flips when using canvas.drawAtlas (#1610). (b4ad498f)
- FIX: Expose
CompositeHitbox
(#1589). (78775798) - FIX: Anchor equality operator is now more reliable (#1560). (0d6581ef)
- FIX: Deprecate Anchor.translate() (#1672). (80c648fc)
- FIX: Avoid leaks when using PictureRecorders (#1643). (d67065e5)
- FIX: Remove nonVirtual method shouldRemove (#1707). (1efd067e)
- FIX: Fix flame package example app (#1709). (bd2ef967)
- FIX: Subscription for events when game changes in GameWidget (#1659). (04f0d5d1)
- FIX: performance improvements on
SpriteBatch
APIs (#1637). (4b19a1b2) - FIX: Removed warnings using flutter v3 (#1640). (69214827)
- FIX: ParallaxComponent.update mustCallSuper (#1635). (9474ce74)
- FIX: Isometric tile map component uses scale when getting block from position (#1569). (0c430786)
- FIX: Dispose
TextBoxComponent
image cache properly (#1579). (c0e3257a) - FIX:
ParentIsA
missingmustCallSuper
(#1604). (72129019) - FIX: Component can now be removed in any lifecycle stage (#1601). (c0a14156)
- FIX: Export NotifyingVector2 (#1633). (aeaf9999)
- FIX: RectangleHitbox should shrink to bounds (#1596). (60df3b9f)
- FIX: Components in uninitialized state can now be safely removed (#1551). (ba617790)
- FIX: Bug in "tty" TextBoxComponent (#1619). (6cc3e827)
- FIX: Component.loaded future sometimes failed to complete (#1593). (89ee9b98)
- FIX: correctly calculating frame length (#1578). (efda45e7)
- FIX: Optimize AcceleratedParticle and MovingParticle (#1568). (5591c109)
- FEAT: Method
componentsAtPoint
now reports the "stacktrace" of points (#1615). (e2398966) - FEAT: Allow changing parent from null parent (#1662). (53268b5f)
- FEAT: Callbacks in
HudButtonComponent
constructor andViewportMargin
mixin to avoid code duplication (#1685). (f55b2e0d) - FEAT: Add more lint rules (#1703). (49252f8e)
- FEAT: Keep stacktrace when rethrowing an error from GameWidget (#1675). (dd28183b)
- FEAT: Aligned text in the TextBoxComponent (#1620). (c64aedae)
- FEAT: Included
completed
completer inSpriteAnimation
(#1564). (71999b19) - FEAT: Optional key for Images.load (#1624). (067c34b5)
- FEAT: Bump to Flutter 2.10.0 (#1617). (beac9013)
- FEAT: Add
isFirstFrame
andonStart
event toSpriteAnimation
(#1492). (701d0706) - FEAT: Add
FpsComponent
andFpsTextComponent
...
v1.2.0
v1.2.0
Note: This release has breaking changes.
REFACTOR: Organize Component class (https://github.com/flame-engine/flame/issues/1608). ([069294f4](https://github.com/flame-engine/flame/commit/069294f44082a5d4ae6e9eff1d29be9cb06ee4a7))
REFACTOR: Remove unecessary copy operation on Camera (https://github.com/flame-engine/flame/issues/1708). ([94cc115a](https://github.com/flame-engine/flame/commit/94cc115a9ee6660d1f3a72378e8b35523b83bfad))
REFACTOR: Update and guarantee consistency on mocktail dev dependency version across repo (https://github.com/flame-engine/flame/issues/1701). ([f4a98878](https://github.com/flame-engine/flame/commit/f4a98878062dbd4fe8238a8b014e6be3e528c5d8))
REFACTOR: Add onComplete as optional parameter (https://github.com/flame-engine/flame/issues/1686). ([4ca65f8a](https://github.com/flame-engine/flame/commit/4ca65f8a2c330d61527e071434441f2df9deefb4))
REFACTOR: Added MultiDragListener - common API between HasDraggables and MultiTouchDragDetector (https://github.com/flame-engine/flame/issues/1668). ([801dbba1](https://github.com/flame-engine/flame/commit/801dbba1d8b6fd721d4e2fc752c70f97d4771198))
REFACTOR: Simplify Component.firstChild, .lastChild, and .findParent (https://github.com/flame-engine/flame/issues/1673). ([84f2f57e](https://github.com/flame-engine/flame/commit/84f2f57e5fddb82572177b2bcd0f8309a891ea4e))
REFACTOR: Replace some usages of fold<> with .sum (https://github.com/flame-engine/flame/issues/1670). ([dd05ecb6](https://github.com/flame-engine/flame/commit/dd05ecb6b8b105b4d1fc894dc6ce7ca3f8cf793e))
REFACTOR: Deprecate ComponentSet.createDefault() (https://github.com/flame-engine/flame/issues/1676). ([f37e3a20](https://github.com/flame-engine/flame/commit/f37e3a2028e16143d8bb3218691904c38fb848a4))
REFACTOR: Simplify HudButtonComponent (https://github.com/flame-engine/flame/issues/1647). ([30d84b7c](https://github.com/flame-engine/flame/commit/30d84b7caea128c7dc579dce170129e462bc03bf))
REFACTOR: Component's lifecycle futures moved into LifecycleManager (https://github.com/flame-engine/flame/issues/1613). ([39201c40](https://github.com/flame-engine/flame/commit/39201c40fa3eea5dbdbaa823309cdf8856f912a6))
REFACTOR: TextRenderer and TextPaint moved to separate files (https://github.com/flame-engine/flame/issues/1628). ([5e1f5966](https://github.com/flame-engine/flame/commit/5e1f59663bf7e09a02475979d1eded54dbaaefd7))
REFACTOR: Move to package imports (https://github.com/flame-engine/flame/issues/1625). ([843ddc36](https://github.com/flame-engine/flame/commit/843ddc36249272fcb518b44672e1012307dfa1b5))
REFACTOR: Improve tests (https://github.com/flame-engine/flame/issues/1609). ([f33b3986](https://github.com/flame-engine/flame/commit/f33b3986cd913416ae3955c922d6cc8b0db872e3))
FIX: Fix tile flips when using canvas.drawAtlas (https://github.com/flame-engine/flame/issues/1610). ([b4ad498f](https://github.com/flame-engine/flame/commit/b4ad498fe5488795deb2c2e098fcde357b448bf0))
FIX: Expose CompositeHitbox (https://github.com/flame-engine/flame/issues/1589). ([78775798](https://github.com/flame-engine/flame/commit/7877579868041f4844ebae885da559097b7aa8a5))
FIX: Anchor equality operator is now more reliable (https://github.com/flame-engine/flame/issues/1560). ([0d6581ef](https://github.com/flame-engine/flame/commit/0d6581ef1aaff4437b2a84f9e57d7d0e1d093d1f))
FIX: Deprecate Anchor.translate() (https://github.com/flame-engine/flame/issues/1672). ([80c648fc](https://github.com/flame-engine/flame/commit/80c648fc94dc00e37f2c0876fec39b2628b3128a))
FIX: Avoid leaks when using PictureRecorders (https://github.com/flame-engine/flame/issues/1643). ([d67065e5](https://github.com/flame-engine/flame/commit/d67065e52db453b0f4f190a7aec1bec6bc389e45))
FIX: Remove nonVirtual method shouldRemove (https://github.com/flame-engine/flame/issues/1707). ([1efd067e](https://github.com/flame-engine/flame/commit/1efd067e31ad425941e5b83891c7289ba063ec90))
FIX: Fix flame package example app (https://github.com/flame-engine/flame/issues/1709). ([bd2ef967](https://github.com/flame-engine/flame/commit/bd2ef967e10eb0309e0a468652a657cae3d5e7d5))
FIX: Subscription for events when game changes in GameWidget (https://github.com/flame-engine/flame/issues/1659). ([04f0d5d1](https://github.com/flame-engine/flame/commit/04f0d5d172ca5065e58e8b9b5536cbce706147d4))
FIX: performance improvements on SpriteBatch APIs (https://github.com/flame-engine/flame/issues/1637). ([4b19a1b2](https://github.com/flame-engine/flame/commit/4b19a1b203c5cfca5bb412b91c795fe6a215506e))
FIX: Removed warnings using flutter v3 (https://github.com/flame-engine/flame/issues/1640). ([69214827](https://github.com/flame-engine/flame/commit/69214827a0edb563468951256eccecab408f89df))
FIX: ParallaxComponent.update mustCallSuper (https://github.com/flame-engine/flame/issues/1635). ([9474ce74](https://github.com/flame-engine/flame/commit/9474ce7425ffc18f6b1a1a35c35f59b76f435166))
FIX: Isometric tile map component uses scale when getting block from position (https://github.com/flame-engine/flame/issues/1569). ([0c430786](https://github.com/flame-engine/flame/commit/0c430786e2774174424a21a13464e93d04c69295))
FIX: Dispose TextBoxComponent image cache properly (https://github.com/flame-engine/flame/issues/1579). ([c0e3257a](https://github.com/flame-engine/flame/commit/c0e3257a0b348885275f2659c351bacbfa5a8732))
FIX: ParentIsA missing mustCallSuper (https://github.com/flame-engine/flame/issues/1604). ([72129019](https://github.com/flame-engine/flame/commit/721290198cc7062f8cfb958cb8499e64be7a1e9c))
FIX: Component can now be removed in any lifecycle stage (https://github.com/flame-engine/flame/issues/1601). ([c0a14156](https://github.com/flame-engine/flame/commit/c0a141563b9e832b1a81bf32d860d4dfb2b359ae))
FIX: Export NotifyingVector2 (https://github.com/flame-engine/flame/issues/1633). ([aeaf9999](https://github.com/flame-engine/flame/commit/aeaf9999b0b4f69e394063d3af8e18f67dff5ed9))
FIX: RectangleHitbox should shrink to bounds (https://github.com/flame-engine/flame/issues/1596). ([60df3b9f](https://github.com/flame-engine/flame/commit/60df3b9f60f538fbad7a3d806f5d38262ab6d66c))
FIX: Components in uninitialized state can now be safely removed (https://github.com/flame-engine/flame/issues/1551). ([ba617790](https://github.com/flame-engine/flame/commit/ba617790e4a7ca4dc03f4a2e29de43d42efd3482))
FIX: Bug in "tty" TextBoxComponent (https://github.com/flame-engine/flame/issues/1619). ([6cc3e827](https://github.com/flame-engine/flame/commit/6cc3e82727509f8877873b095c84eef3543fe01e))
FIX: Component.loaded future sometimes failed to complete (https://github.com/flame-engine/flame/issues/1593). ([89ee9b98](https://github.com/flame-engine/flame/commit/89ee9b984bfc3784dedde1ada1daa992a9f0dedc))
FIX: correctly calculating frame length (https://github.com/flame-engine/flame/issues/1578). ([efda45e7](https://github.com/flame-engine/flame/commit/efda45e76c38a2d38a4cd0bb66ece9792f5832df))
FIX: Optimize AcceleratedParticle and MovingParticle (https://github.com/flame-engine/flame/issues/1568). ([5591c109](https://github.com/flame-engine/flame/commit/5591c109437309907cdac72f0bb479a6a6bfa00a))
FEAT: Method componentsAtPoint now reports the "stacktrace" of points (https://github.com/flame-engine/flame/issues/1615). ([e2398966](https://github.com/flame-engine/flame/commit/e239896624f1e2736de83148ff172ca1b0f97dae))
FEAT: Allow changing parent from null parent (https://github.com/flame-engine/flame/issues/1662). ([53268b5f](https://github.com/flame-engine/flame/commit/53268b5f5fd81f3822bfda9721b97be4e72e48e3))
FEAT: Callbacks in HudButtonComponent constructor and ViewportMargin mixin to avoid code duplication (https://github.com/flame-engine/flame/issues/1685). ([f55b2e0d](https://github.com/flame-engine/flame/commit/f55b2e0dc01c98718e4871430c6745472c221821))
FEAT: Add more lint rules (https://github.com/flame-engine/flame/issues/1703). ([49252f8e](https://github.com/flame-engine/flame/commit/49252f8ef29aa6b77144dcb97c24346f2f39380b))
FEAT: Keep stacktrace when rethrowing an error from GameWidget (https://github.com/flame-engine/flame/issues/1675). ([dd28183b](https://github.com/flame-engine/flame/commit/dd28183bc4ebe2ea2f80d1dab3b5ab22d11b8382))
FEAT: Aligned text in the TextBoxComponent (https://github.com/flame-engine/flame/issues/1620). ([c64aedae](https://github.com/flame-engine/flame/commit/c64aedaeb3fed908722b8872b71e288ff87bc761))
FEAT: Included completed completer in SpriteAnimation (https://github.com/flame-engine/flame/issues/1564). ([71999b19](https://github.com/flame-engine/flame/commit/71999b191af0285e8d61583b041da58afd40d8d2))
FEAT: Optional key for Images.load (https://github.com/flame-engine/flame/issues/1624). ([067c34b5](https://github.com/flame-engine/flame/commit/067c34b5f29e1a9bd51861d872092ae5ee0a551f))
FEAT: Bump to Flutter 2.10.0 (https://github.com/flame-engine/flame/issues/1617). ([beac9013](https://github.com/flame-engine/flame/commit/beac901313456cf0b39b6f4e6459f0feed183614))
FEAT: Add isFirstFrame and onStart event to SpriteAnimation (https://github.com/flame-engine/flame/issues/1492). ([701d0706](https://github.com/flame-engine/flame/commit/701d0706af74e6437d71376d468b32bb2537e5b7))
FEAT: Add FpsComponent and FpsTextComponent (https://github.com/flame-engine/flame/issues/1595). ([4c68c2b0](https://github.com/flame-engine/flame/commit/4c68c2b0a2660e705b30099234da4ab1eb4616d0))
FEAT: Added FollowBehavior and ability for the new Camera to follow a component (https://github.com/flame-engine/flame/issues/1561). ([b583388c](https://github.com/flame-engine/flame/commit/b583388ca432f799ad13b92a3a7bf25ddf98ceb0))
FEAT: Added componentsA...
v1.1.1
2022-04-12
Changes
Packages with breaking changes:
Packages with other changes:
flame
-v1.1.1
flame_oxygen
-v0.1.2
flame_bloc
-v1.3.0
flame_rive
-v1.2.0
flame_svg
-v1.2.0
flame_test
-v1.4.0
flame_tiled
-v1.4.0
flame_audio
-v1.0.2
flame_flare
-v1.1.1
flame_fire_atlas
-v1.0.2
Packages with dependency updates only:
Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
flame_audio
-v1.0.2
flame_flare
-v1.1.1
flame_fire_atlas
-v1.0.2
flame_forge2d
- v0.11.0
- FEAT: Bump forg2d version and have flame_forge2d examples use latest syntax (#1535). (4f7a12eb)
- FEAT: Added children parameter to Component constructor (#1525). (f0b31fcf)
- DOCS: Fix flame_forge2d readme links (#1540). (c51bc6db)
- BREAKING FEAT: Flip gravity in flame_forge2d to be able to mix Forge2D and Flame components (#1506). (bdb360f1)
flame
- v1.1.1
- REFACTOR: Added classes MoveByEffect and MoveToEffect (#1524). (2171a119)
- FIX: Invalidate polygon cache on resize (#1529). (11bf75d0)
- FIX: Bug with anchor parameter in Sprite.render() (#1508). (325df46e)
- FIX: Make CollisionProspect's a, b have unordered equality (#1519). (5b2471c8)
- FEAT: able to clear all overlays (#1536). (7b15c9a1)
- FEAT: Automatic Isometric Grid scaling (#1468). (cae8c0ce)
- FEAT: Added children parameter to Component constructor (#1525). (f0b31fcf)
- FEAT: Camera's Viewfinder can now be affected by rotation effects (#1527). (f46cae04)
- FEAT: Scale (zoom) effects can now be applied to Viewfinder in CameraComponent (#1514). (403b6e60)
- FEAT: adding HasGameRef.mockGameRef (#1520). (4f389f8b)
- FEAT: flame tests can now generate golden tests (#1501). (316a0b3b)
flame_oxygen
- v0.1.2
flame_bloc
- v1.3.0
flame_rive
- v1.2.0
flame_svg
- v1.2.0
flame_test
- v1.4.0
- FEAT: Added closeToAabb() (#1531). (f7b6cc69)
- FEAT: flame tests can now generate golden tests (#1501). (316a0b3b)
flame_tiled
- v1.4.0
v1.1.0
1.1.0
- FIX: Only end collisions where there was a collision (#1471). (e1e87fc4)
- FIX:
debugMode
should be inherited from parent when mounted (#1469). (e894d201) - FEAT: Added method that returned descendants (#1461). (a41f5376)
- FEAT: Possibility to mark gesture events as handled (#1465). (4c3960c3)
- FEAT: adding loaded future to the component (#1466). (6434829b)
- FEAT: Deprecating Rect methods (#1455). (4ddd90aa)
- FEAT: Added .anchor property to CameraComponent.Viewfinder (#1458). (d51dc5e1)
- DOCS:
Rect
extension docs is out of date (#1451). (7e505722) - FIX:
@mustCallSuper
missing on components (#1443). (e01b4b1a) - FEAT: Add setter to priority (#1444). (34284686)
- FIX: Setting images.prefix to empty string (#1437). (694102bd)
- REFACTOR: Parent change and component removal logic (#1385). (8b9fa352)
- FIX: viewfinders behavior under zoom (#1432). (f3cf85b6)
- FIX: change strokeWidth in Component (#1431). (0e174fe8)
- FEAT: allowing changing of the images prefix and allowing empty prefixes (#1433). (de4d9416)
- REFACTOR: Loadable mixin no longer declares onMount and onRemove (#1243). (b1f6a34c)
- REFACTOR: Organize tests in the game/ folder (#1403). (102a27cc)
- REFACTOR: Clean up of top-level tests (#1386). (e50003ed)
- REFACTOR: Resize logic in GameRenderBox (#1308). (17c45c28)
- REFACTOR: Simplify GameWidgetState.loaderFuture (#1232). (eb30c2e5)
- REFACTOR: Component.ancestors() is now an iterator (#1242). (ce48d77a)
- REFACTOR: Add a few more rules to flame_lint, including use_key_in_widget_constructors (#1248). (bac6c8a4)
- REFACTOR: Removed parameter Component.updateTree({callOwnUpdate}) (#1224). (ed227e7c)
- REFACTOR: Remove Loadable, optional onLoads (#1333). (05f7a4c3)
- REFACTOR: Loadable no longer declares onGameResize (#1329). (20776e86)
- REFACTOR: Use canvas.drawImageNine in NineTileBox (#1314). (d77e5efe)
- PERF: Allow components to have null children (#1231). (66ad4b08)
- FIX: flame svg perfomance (#1373). (bce24173)
- FIX: Fix collision detection comments and typo (#1422). (dfeafdd6)
- FIX:
ParallaxComponent
should have staticpositionType
(#1350). (cfa6bd12) - FIX: Add missing
priority
argument forJoystickComponent
(#1227). (23b1dd8b) - FIX: Step time in SpriteAnimation must be positive (#1387). (08e8eac1)
- FIX: HudMarginComponent positioning on zoom (#1250). (4f0fb2de)
- FIX: Call onCollisionEnd on removal of Collidable (#1247). (5ddcc6f7)
- FIX: Both places should have
strictMode = false
(#1272). (72161ad8) - FIX: remove vector_math dependency (#1361). (56b33da2)
- FIX: Deprecate pause and resume in GameLoop (#1240). (dc37053f)
- FIX: Deprecate Images.decodeImageFromPixels (#1318). (1a80130c)
- FIX: Properly dispose images when cache is cleared (#1312). (825fb0cc)
- FIX: Fix SpriteAnimationWidget lifecycle (#1212). (86394dd3)
- FIX: redrawing bug in TextBoxComponent (#1279). (8bef4805)
- FIX: Add missing paint argument to
SpriteComponent.fromImage
(#1294). (254a60c8) - FIX: black frame when activating overlays (#1093). (85caf463)
- FIX:
prepareComponent
should never run again on a prepared component (#1237). (7d3eeb73) - FIX: Allow most basic and advanced gesture detectors together (#1208). (5828b6f3)
- FEAT: Added SpeedEffectController (#1260). (20f521f5)
- FEAT: Added SineEffectController (#1262). (c888703d)
- FEAT: Added ZigzagEffectController (#1261). (59adc5f3)
- FEAT: Add onReleased callback for HudButtonComponent (#1296). (87ee34ca)
- FEAT: Turn off
strictMode
for children (#1271). (6936e1d9) - FEAT:
onCollisionStart
forCollidable
andHitboxShape
(#1251). (9b95686b) - FEAT: adding has mounted to component (#1418). (f8f9e045)
- FEAT: Added NoiseEffectController (#1356). (fad9d1d5)
- FEAT: exporting cache classes (#1368). (3e058973)
- FEAT: Update scale events to contain pan info (#1327). (70b96b07)
- FEAT: Components are now always added in the correct order (#1337). (c753fc46)
- FEAT: Added
transform
toRect
(#1360). (1818be41) - FEAT: Camera as a component (#1355). (c61a1c18)
- FEAT: Effect.onComplete callback as an alternative to onFinish() (#1201). (932a8111)
- FEAT: Add RandomEffectController (#1203). (cdb2650b)
- FEAT:
Component.childrenFactory
can be used to set up a globalComponentSet
factory (#1193). ([223ab75](https://gith...
v1.0.0
CHANGELOG
[1.0.0]
- Add
ButtonComponent
backed by twoPositionComponent
s - Add
SpriteButtonComponent
backed by twoSprite
s - Allow more flexible construction of
EffectController
s and make them able to run back in time - Remove old effects system
- Export new effects system
- Introduce
updateTree
to follow therenderTree
convention - Fix
Parallax.load
with different loading times - Fix render order of components and add tests
- Fix
HitboxCircle
when component is flipped - Add
ColorEffect
MoveAlongPathEffect
can now be absolute, and can auto-orient the object along the pathScaleEffect.by
now applies multiplicatively instead of additivelyisHud
replaced withPositionType
- Remove web fallback for
drawAtlas
in SpriteBatch, but added flaguseAtlas
to activate it
1.0.0-rc14
CHANGELOG
[1.0.0-releasecandidate.14]
- Reset effects after they are done so that they can be repeated
- Remove integrated joystick buttons
- Add
MarginHudComponent
, used when components need to have a margin to the viewport edge - Refactor
JoystickComponent
- Add
SpriteAnimationWidget.asset
- Add
SpriteWidget.asset
- Add
SpriteButton.asset
- Add
NineTileBox.asset
- Fix resolution of
TextBoxComponent
- Add
BaseGame.remove
andBaseGame.removeAll
helpers for removing components - Add
BaseComponent.remove
andBaseComponent.removeAll
helpers for removing children - Rename
Camera.cameraSpeed
toCamera.speed
- Rename
addShape
toaddHitbox
inHitbox
mixin - Fix bug with Events and Draggables
- Add generics to components with HasGameRef so that they can be extended and have another gameRef
- Fix parallax fullscreen bug when game is resized
- Generalize
paint
usage on components - Create
OpacityEffect
- Create
ColorEffect
- Adding ability to pause
SpriteAnimationComponent
- Adding
SpriteGroupComponent
- Fix truncated last frame in non-looping animations
- Default size of
SpriteComponent
issrcSize
instead of spritesheet size - Export test helper methods
- Rename
ScaleEffect
toSizeEffect
- Introduce
scale
onPositionComponent
- Add
ScaleEffect
that works onscale
instead ofsize
- Add class
NotifyingVector2
- Add class
Transform2D
- Added helper functions
testRandom()
andtestWidgetsRandom()
- Remove
FPSCounter
fromBaseGame
- Refactor
PositionComponent
to work withTransform2D
: the component now works more reliably
when nested - Properties
renderFlipX
,renderFlipY
removed and replaced with methods
flipHorizontally()
andflipVertically()
. - Method
.angleTo
removed as it was not working properly. - In debug mode
PositionComponent
now displays an indicator for the anchor position. - Update
Camera
docs to showcase usage withGame
class - Fixed a bug with
worldBounds
being set tonull
inCamera
- Remove
.viewport
fromBaseGame
, usecamera.viewport
instead MockCanvas
is now strongly typed and matches numeric coordinates up to a tolerance- Add
loadAllImages
toImages
, which loads all images from the prefixed path - Reviewed the keyboard API with new mixins (
KeyboardHandler
andHasKeyboardHandlerComponents
) - Added
FocusNode
on the game widget and improved keyboard handling in the game. - Added ability to have custom mouse cursor on the
GameWidget
region - Change sprite component to default to the Sprite size if not provided
TextBoxComponent
waits for cache to be filled ononLoad
TextBoxComponent
can have customizablepixelRatio
- Add
ContainsAtLeastMockCanvas
to facilitate testing withMockCanvas
- Support for
drawImage
forMockCanvas
Game
is now aComponent
ComponentEffect
is now aComponent
HasGameRef
can now operate independently fromGame
initialDelay
andpeakDelay
for effects to handle time before and after an effectcomponent.onMount
now runs every time a component gets a new parent- Add collision detection between child components