Commit Graph

59 Commits

Author SHA1 Message Date
Lukas Klingsbo
2d532bc704 chore: Max line length of 80 (#1199)
* docs: Max line length of 80

* Fix missing >80 character lines

* Ugly, but that's how the formatter wants it
2021-12-10 21:29:05 +00:00
Lukas Klingsbo
5c47d7f6d7 chore: analyze issues introduced from new dart version (#1196)
* Added Component.childrenFactory

* fix some of the lint warnings

* more lint warnings

* remove changelog entry

* more analyzer warnings

* one more warning

* one more warning

* remove more unused imports

* fix more warnings

* another warning

* one more warning

* a lot more warnings

* some more warnings

* fix warnings in flame_svg

* fix warnings in flame_bloc

* Remove OrderedSet override feature

* Remove testRandom change

* Remove unnecessary type checks

* Re-remove deprecated argument in random_test

Co-authored-by: Pasha Stetsenko <stpasha@google.com>
2021-12-09 15:40:43 +01:00
Lukas Klingsbo
fe162c6d90 Introduce updateTree (#1158)
* Introduce updateTree

* Update tests

* Fix update for game-in-game situations

* Add dartdoc to updateTree
2021-12-03 14:01:46 +01:00
Erick
c2cb048ac3 Adding dartdocs to flame_bloc public members (#1102) 2021-11-18 11:56:46 +00:00
Erick
abc29dbc58 Improving TimerComponent API (#1085)
* Improving TimerComponent API

* pr suggestion

* Update packages/flame/lib/src/components/timer_component.dart

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* pr suggestion

* docs

* pr suggestions

* fixing

* renaming to onTick

* Update packages/flame/lib/src/components/timer_component.dart

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

* Apply suggestions from code review

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* fixing issues

* fixing flmae bloc isse

* more suggestions

* Update packages/flame/lib/src/timer.dart

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
Co-authored-by: Luan Nico <luanpotter27@gmail.com>
2021-11-15 14:55:18 +00:00
Lukas Klingsbo
3a8abe139b Rename Hitbox mixin to HasHitboxes (#1060) 2021-11-02 12:44:21 +01:00
Erick
3bdb90fb5c Adding flame_lint and removing dart code metrics (#1049)
* Adding flame_lint and removing dart code metrics

* Update packages/flame_flare/example/pubspec.yaml

* updating analyze action

* adding missing dardoc dep on flame_lint

* removing test folder from the lint package

* fixing sdk versions

* license and changeog fix

* Update packages/flame_lint/README.md

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>

* additional readme fix

Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
2021-10-26 23:50:30 +00:00
Erick
a1a0862121 Add @mustCallSuper to component.render (#1011)
* Add @mustCallSuper to component.render

* fixing lint

* lint

* fixing
2021-10-10 23:37:30 +00:00
Erick
cb91e11c62 Adding Flame Bloc package 🔥🧱 (#990)
* adding some code for flame bloc

* feat: adding bloc

* feat: flame bloc API and examples

* improving subscriptions and cleaning of subscriptions

* fixing and adding tests

* more tests and things

* lints

* Update packages/flame/lib/src/components/component.dart

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

* fixing some PR comments and adding a better readme

* many issues fixed

* fixing some additional issues

* improving example

* adding dart code metrics back

* fixing lints

* fix lint again

* linti again

* fix dartdoc

* removing cleanComponent

* Apply suggestions from code review

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

* Luan's trailling commas

* Update packages/flame_test/lib/src/flame_test.dart

Co-authored-by: Luan Nico <luanpotter27@gmail.com>

* Update packages/flame_bloc/README.md

Co-authored-by: Felix Angelov <felangelov@gmail.com>

* Update packages/flame/CHANGELOG.md

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

* Apply suggestions from code review

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

* Update packages/flame_bloc/lib/src/flame_bloc_game.dart

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

Co-authored-by: Luan Nico <luanpotter27@gmail.com>
Co-authored-by: Felix Angelov <felangelov@gmail.com>
Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
2021-10-04 09:25:22 -03:00