Commit Graph

3302 Commits

Author SHA1 Message Date
Lukas Klingsbo
a448ec7dab fix: Broken links for flame_forge2d examples (#1631) 2022-05-16 16:12:56 +02:00
Pasha Stetsenko
d0faaada2b feat: Add helper function for creating golden tests (#1623) 2022-05-15 20:50:27 +00:00
Lukas Klingsbo
843ddc3624 refactor: Move to package imports (#1625)
* refactor: Move to package imports

* Fix local imports

* Removed unused imports
2022-05-15 15:04:35 +00:00
Gustl22
6da8adb28c fix: Upgrade dartdoc (upgrade analyzer transitive dependency) (#1630)
Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
2022-05-15 14:51:16 +00:00
Jochum van der Ploeg
0761a79df6 feat!: remove onTimingsCallback for Flutter 3.0 (#1626) 2022-05-15 16:19:41 +02:00
Lukas Klingsbo
067c34b5f2 feat: Optional key for Images.load (#1624) 2022-05-14 13:22:22 +02:00
Lukas Klingsbo
beac901313 feat: Bump to Flutter 2.10.0 (#1617) 2022-05-13 12:50:08 +02:00
Pasha Stetsenko
c3bb14b7ca feat!: Added anchor for the Viewport (#1611) 2022-05-11 17:56:41 +00:00
Lukas Klingsbo
4c68c2b0a2 feat: Add FpsComponent and FpsTextComponent (#1595) 2022-05-11 19:49:14 +02:00
Lukas Klingsbo
02be4acd87 fix!: FixedResolutionViewport noClip -> clip (#1612) 2022-05-11 19:41:16 +02:00
Lukas Klingsbo
f88200a1bf docs: Added the T-Rex example (#1602) 2022-05-08 20:07:33 +00:00
Pasha Stetsenko
abb497abe4 feat: World bounds for a CameraComponent (#1605) 2022-05-08 18:36:56 +00:00
nathanaelneveux
b4ad498fe5 fix: Fix tile flips when using canvas.drawAtlas (#1610) 2022-05-08 15:48:32 +00:00
Lukas Klingsbo
60df3b9f60 fix: RectangleHitbox should shrink to bounds (#1596) 2022-05-08 15:38:06 +00:00
Pasha Stetsenko
f33b3986cd refactor: Improve tests (#1609) 2022-05-08 14:54:15 +00:00
Pasha Stetsenko
069294f440 refactor: Organize Component class (#1608) 2022-05-08 16:47:12 +02:00
Pasha Stetsenko
c0a141563b fix: Component can now be removed in any lifecycle stage (#1601) 2022-05-05 19:06:44 +00:00
Erick
881f24c23e chore(release): publish packages (#1606)
- flame_bloc@1.4.0
2022-05-05 14:41:22 -03:00
Erick
f98970a91f feat: new flame bloc API (#1538)
* feat: adding tests and multi bloc provider

* adding more tests

* feat: adding missing tests

* refactored part of the game

* feat(flame_bloc): add FlameBlocListenerComponent (#1591)

* refactor(flame_bloc): rename FlameBlocListener component and mixin (#1599)

* feat(flame_bloc): add optional bloc parameter to FlameBlocListener (#1600)

* feat(flame_bloc): add optional bloc parameter to FlameBlocListener

* chore: fix >80 char inline docs comment

* Apply suggestions from code review

Co-authored-by: Pasha Stetsenko <stpasha@gmail.com>

* move to ounmount

Co-authored-by: Jochum van der Ploeg <jochum.vanderploeg@verygood.ventures>
Co-authored-by: Felix Angelov <felangelov@gmail.com>
Co-authored-by: Pasha Stetsenko <stpasha@gmail.com>
Co-authored-by: Renan Araujo <renan.araujo@verygood.ventures>
2022-05-05 16:40:50 +00:00
Pasha Stetsenko
ed302d8916 feat: Added the onLongTapDown event (#1587) 2022-05-04 16:03:43 +00:00
Jochum van der Ploeg
721290198c fix: ParentIsA missing mustCallSuper (#1604) 2022-05-04 12:31:42 +02:00
Pasha Stetsenko
89ee9b984b fix: Component.loaded future sometimes failed to complete (#1593) 2022-05-01 15:04:22 +00:00
Lukas Klingsbo
6dd0a970e6 docs: Move flame_forge2d examples to main examples (#1588) 2022-05-01 13:00:48 +00:00
Lukas Klingsbo
7877579868 fix: Expose CompositeHitbox (#1589) 2022-04-29 16:09:48 +02:00
Alejandro Santiago
6b217ac466 fix: flips back defaultGravity on y axis (#1585)
Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
2022-04-28 15:38:06 +02:00
nathanaelneveux
f64d5264ab fix(flame_tiled): Add centered anchor point for tile rotation (#1570) 2022-04-28 07:45:13 +02:00
Lukas Klingsbo
c0e3257a0b fix: Dispose TextBoxComponent image cache properly (#1579) 2022-04-27 18:09:20 +00:00
Jochum van der Ploeg
2cdf386846 feat: add ParentIsA to force parent child relations (#1566) 2022-04-27 17:47:57 +00:00
Pasha Stetsenko
666a2b199f feat: Adding classes for raw geometric shapes (#1528) 2022-04-27 17:39:50 +00:00
Lukas Klingsbo
2981718883 ci: Run tests in parallel with analyze (#1583) 2022-04-27 17:33:28 +00:00
oloshe
866fa82c55 test: add SpriteAnimationData tests (#1581) 2022-04-27 17:26:00 +00:00
Pasha Stetsenko
1bfed57132 feat!: Size effects will now work only on components implementing SizeProvider (#1571) 2022-04-27 19:10:01 +02:00
RFager
0c430786e2 fix: Isometric tile map component uses scale when getting block from position (#1569) 2022-04-27 16:20:07 +00:00
oloshe
efda45e76c fix: correctly calculating frame length (#1578) 2022-04-26 16:00:56 +00:00
Michal
8e81261def docs: Update Polish readme (#1573) 2022-04-26 07:41:09 +00:00
oloshe
e42b495805 feat: Add range constructor on SpriteAnimationData (#1572) 2022-04-25 22:04:13 +00:00
Pasha Stetsenko
b99e35120d feat: Added componentsAtPoint() iterable (#1518) 2022-04-25 19:52:21 +02:00
Lukas Klingsbo
5591c10943 fix: Optimize AcceleratedParticle and MovingParticle (#1568) 2022-04-25 16:07:11 +00:00
Pasha Stetsenko
b583388ca4 feat: Added FollowBehavior and ability for the new Camera to follow a component (#1561) 2022-04-25 17:53:07 +02:00
Munsterlander
701d0706af feat: Add isFirstFrame and onStart event to SpriteAnimation (#1492) 2022-04-23 18:28:50 +02:00
Andrey Unger
450927caa0 update russian readme (#1565) 2022-04-22 20:26:38 +02:00
Alejandro Santiago
a50d4a1e7d feat!: enhance ContactCallback process (#1547)
Migration notes

The entire contact callback process has been redefined to mimic Flame's CollisionCallbacks.

In order to simplify the migration to this new code, the following steps should facilitate doing so:

    Remove lines of code that used addContactCallback, removeContactCallback, clearContactCallback.
    Remove subclasses of ContactCallbacks<Type1, Type2>.
    2.1. Include with ContactCallback in your BodyComponent class signature.
    2.2. Override the contact method that you are interested in, and check that other is Type2, then perform the logic.

The above is just a suggested migration approach. There are other code alternatives or patterns you might want to follow. In addition, you can define your own custom contact logic by providing a ContactListener to your Forge2DGame.

For more information check the examples, Flame documentation, or the class documentation of ContactCallbacks and WorldContactListener.
2022-04-22 13:04:10 +00:00
Alejandro Santiago
71999b191a feat: Included completed completer in SpriteAnimation (#1564) 2022-04-22 14:04:55 +02:00
Pasha Stetsenko
eff72794af feat: Added AnchorToEffect and AnchorByEffect (#1556) 2022-04-21 17:47:41 +00:00
JCzz
90747bf4a5 fix: MouseJoint gets less and less reactive (#1562) 2022-04-21 17:11:18 +02:00
Pasha Stetsenko
0d6581ef1a fix: Anchor equality operator is now more reliable (#1560) 2022-04-21 10:50:02 +02:00
Pasha Stetsenko
a0ff2d18a1 feat: MoveAlongPathEffect can now be applied to any PositionProvider (#1555) 2022-04-20 18:10:25 +00:00
Ondrej Simek
b1fae2976e fix: Fix setter in Oxygen's SizeComponent (#1557) 2022-04-20 17:53:34 +02:00
Pasha Stetsenko
ba617790e4 fix: Components in uninitialized state can now be safely removed (#1551) 2022-04-18 22:15:07 +02:00
Alejandro Santiago
ceb726666e feat: allowed specifying renderBody via constructor (#1548) 2022-04-15 15:04:18 +02:00