Commit Graph

3302 Commits

Author SHA1 Message Date
Erick
c92432895d feat: adding svg example (#1352) 2022-02-11 10:13:30 -03:00
Lukas Klingsbo
e950469f7e Initialize melos before building gh pages (#1366) 2022-02-10 20:44:22 -03:00
Lukas Klingsbo
9935a5024c chore: Add melos-action to cicd (#1354) 2022-02-10 22:49:40 +01:00
Constantine
f3b5fc37e6 Update components.md (#1362) 2022-02-09 17:48:25 +00:00
Christopher Fujino
56b33da29c fix: remove vector_math dependency (#1361)
* remove vector_math dependency

* remove vector_math from flame_test
2022-02-09 10:50:24 -03:00
Pasha Stetsenko
fad9d1d54f feat: Added NoiseEffectController (#1356) 2022-02-06 13:43:12 +01:00
Pasha Stetsenko
9f096053fd docs: Fix various dartdoc warnings (#1353) 2022-02-04 14:00:47 +01:00
Lukas Klingsbo
cfa6bd127b fix: ParallaxComponent should have static positionType (#1350) 2022-02-03 09:19:36 +01:00
Lukas Klingsbo
88ac3fad20 chore: publish flame_tiled 1.2.1 (#1349) flame_tiled-v1.2.1 2022-02-01 19:42:57 +00:00
Luke Fraker
80a483f80d fix!: fix multiple external tilesets (#1344) 2022-02-01 19:20:42 +00:00
Kato Shinya
4e8d129236 docs: Added Japanese README (#1347) 2022-02-01 10:49:43 +00:00
Norberto Martín Afonso
062962de08 feat: update rive package to 0.8.1 (now support raster graphics) (#1343) 2022-02-01 11:35:42 +01:00
Erick
6e66baa12f fix: preventing svg rendering from affecting other renderings (#1339) 2022-01-25 09:09:52 -03:00
Pasha Stetsenko
05f7a4c3d6 refactor: Remove Loadable, optional onLoads (#1333) 2022-01-24 23:23:12 +01:00
Erick
00619f8047 feat: adding default constructor on SvgComponent (#1334)
* feat: adding default constructor on SvgComponent

* fixing flame version

* svg not final anymore

* pr suggestions
2022-01-24 09:30:39 -03:00
Agustin Barreto
9bff96bf3a docs: Fix typo in flame_bloc readme (#1332) 2022-01-22 13:07:34 +00:00
Pasha Stetsenko
20776e8659 refactor: Loadable no longer declares onGameResize (#1329) 2022-01-22 10:58:43 +00:00
Lukas Klingsbo
70b96b071a feat(gestures): Update scale events to contain pan info (#1327)
Since the ScaleDetector is a superset of the PanDetector we need to include pan info in the scale events too
2022-01-22 11:45:42 +01:00
Agustin Barreto
bcb27f706f feat: Optional Camera argument in FlameBlocGame (#1331) 2022-01-22 11:20:44 +01:00
Lukas Klingsbo
0748336235 chore(release): publish packages (#1328)
- flame_tiled@1.2.0
2022-01-21 12:48:02 +01:00
Dieter Meiller
b56d5f3cd7 feat: modifiable Layer and TileData in RenderableTileMap (#1324)
The contents of the underlying map in `RenderableTileMap` can now be modified at runtime.
2022-01-20 16:24:41 +01:00
Lukas Klingsbo
27adda17b7 fix!: Remove pointerId from Draggable callbacks (#1313)
Since pointerId is already handled by the handle* methods we don't have to expose it in the onDrag* methods, this conforms with the standard set in Tappable.
2022-01-18 23:22:10 +01:00
Pasha Stetsenko
b1d4e5872e docs: Added documentation for GameLoop class (#1234)
Added documentation for the GameLoop class.
2022-01-18 21:20:26 +01:00
Lukas Klingsbo
bf67356a05 chore(flame_tiled): Release flame_tiled 1.1.0 (#1323)
Release flame_tiled 1.1.0
flame_tiled-v1.1.0
2022-01-17 16:06:25 +01:00
João Mantovani
adf069f0a8 docs: Fix a typo in parallax documentation (#1320) 2022-01-17 11:06:05 +00:00
Luke Fraker
30fce398db fix!: Change Tiled batched rendering to batched rendering per layer (#1317)
This fix introduces a list of SpriteBatch maps corresponding to the visible TileLayers. The BatchMaps are then rendered in order of the layers.
2022-01-16 23:52:32 +00:00
Lukas Klingsbo
d77e5efee5 refactor: Use canvas.drawImageNine in NineTileBox (#1314)
`canvas.drawImageNine` is built-in now a lot of logic was removed from NineTileBox.
2022-01-17 00:22:51 +01:00
Pasha Stetsenko
dc37053fb6 fix: Deprecate pause and resume in GameLoop (#1240)
GameLoop methods pause() and resume() are marked as deprecated, with a recommendation to use start() and stop() instead.
2022-01-16 08:03:09 +01:00
Erick
4d5adcb0d0 feat: publish flame bloc (#1319)
* publish flame bloc

* removing publish_to none on flame bloc
flame_bloc-1.1.0
2022-01-15 12:58:53 -03:00
Pasha Stetsenko
1a80130c66 fix: Deprecate Images.decodeImageFromPixels (#1318)
- Images.decodeImageFromPixels is marked.
- A simplified version is available as ImageExtension.fromPixels.
2022-01-15 16:13:58 +01:00
Lukas Klingsbo
825fb0cc7e fix: Properly dispose images when cache is cleared (#1312)
* fix: Properly dispose images when cache is cleared

* Add test for clear and clearCache

* Update docs for Images cache
2022-01-15 15:40:40 +01:00
Pasha Stetsenko
e2655b8817 refactor!: Separate ComponentSet from the Component (#1266)
This PR breaks the two classes apart: Component will now perform its own lifecycle management, and ComponentSet will focus on being a simple container.
2022-01-14 19:07:29 +01:00
Erick
574e0ab58b feat!: updating flame_bloc to bloc 8 (#1311)
This is a breaking change in terms that the user will need to update their dependency as well, but no code change will be required if they already moved their blocs to the new API.
2022-01-13 10:31:34 +01:00
Pasha Stetsenko
17c45c2829 refactor: Resize logic in GameRenderBox (#1308)
This PR changes GameRenderBox to adhere to this advice and set sizedByParent to true.
2022-01-12 23:13:07 +01:00
YohanWadia
2fbfd3d605 feat: Dual Effect & Its separate removals (#1289) 2022-01-07 17:39:50 +01:00
Lukas Klingsbo
254a60c847 fix: Add missing paint argument to SpriteComponent.fromImage (#1294)
Adding the paint argument which exists in the normal SpriteComponent constructor to the named SpriteComponent.fromImage constructor.
2022-01-07 14:38:03 +00:00
Ryuzaki
d62e47f605 docs: Replace renderFlip properties with flipxxx methods (#1304)
Updated the docs to use flipHorizontally() and flipVertically() instead of renderFlipX and renderFlipY.
2022-01-07 14:24:50 +00:00
Ryuzaki
87ee34cac7 feat: Add onReleased callback for HudButtonComponent (#1296)
Adding an `onReleased` callback to `HudButtonComponent` which will be called when button is released.
2022-01-07 13:41:43 +00:00
Lukas Klingsbo
b9b8c64343 docs: Add note about PositionType and subcomponents (#1300)
Add note about PositionType and subcomponents
2022-01-07 14:27:38 +01:00
Lukas Klingsbo
db7842df93 chore(publish): Publish flame_test 1.1.0 (#1299)
Publish new version of flame_test (1.1.0)
2022-01-07 11:09:08 +00:00
Lukas Klingsbo
ee7298cbe5 docs: Update flame_tiled readme (#1286) 2022-01-03 14:43:46 +01:00
Pasha Stetsenko
c888703d6e feat(effects): Added SineEffectController (#1262)
An effect controller that represents a single period of the sine function. Use this to create
natural-looking harmonic oscillations. Two perpendicular move effects governed by
SineEffectControllers with different periods, will create a [Lissajous curve].
2021-12-28 00:12:39 +01:00
Pasha Stetsenko
7c6ae6def3 feat(effects)!: Added SequenceEffect (#1218)
Added SequenceEffect, which performs a series of other effects.

The biggest challenge in implementing this feature came from the need to run the sequence in reverse, due to the alternate flag. This required that every effect and every controller supported running "back in time", which is not as simple as it sounds.

The following breaking changes were introduced:

    The Effect class no longer supports .reverse() method and .isReversed flag.

    This flag was added only 2 weeks ago (

Effect controllers restructuring #1134), with the idea that it will be necessary for the SequenceEffect. However, as it turned out, this flag is not as helpful as I thought it would be. In fact, given the user's ability to change it any point, it makes the implementation very error-prone.

To be clear, the ability for each effect to run in reverse remains -- only now it can no longer be triggered by the user manually. Instead, SequenceEffect triggers that ability itself at the alternation point. If there is demand in the future to manually force any effect to run backwards, we could restore this flag, but this would require thorough testing to make it work correctly.

Infinite effects now return duration = double.infinity instead of null, which seems more appropriate.
2021-12-27 21:57:48 +01:00
Pasha Stetsenko
20f521f5be feat(effects): Added SpeedEffectController (#1260)
This adds SpeedEffectController -- new kind of effect controller that can be used to create effects that proceed with a predefined speed. In addition, the factory constructor EffectController() now has 2 more parameters speed and reverseSpeed for easier creation of speed-based effects. The argument duration is now optional.

The base EffectController class now has onMount() callback, which is invoked when the effect controller is attached to an Effect.
2021-12-27 19:30:35 +00:00
Pasha Stetsenko
cf577bedaf chore(flame_test): Deprecate expectVector2 (#1275)
Function expectVector2 is deprecated in favor of closeToVector(). All uses of expectVector2 removed from our tests.
2021-12-27 19:17:32 +00:00
Pasha Stetsenko
b1f6a34c19 refactor: Loadable mixin no longer declares onMount and onRemove (#1243)
Loadable mixin is currently used for 2 classes: Game and Component. Its purpose is to provide the caching layer for the future returned by the onLoad() method. Having empty methods onMount() / onRemove() in that mixin does not fit its overall purpose. (Plus, in general, the purpose of any mixin is to add some additional concrete functionality into an existing class).

In addition to the scope mismatch, these methods perform similar yet not quite the same function in Game and Component. Having these methods declared directly within Game and Component allows to document them more precisely, and help the user understand their functionality/purpose better.
2021-12-27 18:59:17 +00:00
Pasha Stetsenko
59adc5f34c feat(effects): Added ZigzagEffectController (#1261)
Simple alternating effect controller. Over the course of one period, this controller will proceed
linearly from 0 to 1, then to -1, and then back to 0. Use this for oscillating effects where the
starting position should be the center of the oscillations, rather than the extreme (as provided
by the standard alternating EffectController).
2021-12-27 17:19:18 +00:00
YohanWadia
240634e7a3 docs: Fix keyboard example instructions (#1281) 2021-12-27 17:02:09 +00:00
Pasha Stetsenko
8bef480597 fix: redrawing bug in TextBoxComponent (#1279) 2021-12-27 17:48:32 +01:00
Pasha Stetsenko
35f5327cb9 Fix handleDragCanceled() callback (#1280) 2021-12-27 11:25:12 +01:00