31 Commits

Author SHA1 Message Date
ccee9a466b Move files to src and comply with the dart package layout convention (#621)
* 👌 Use `Offset` type directly in `JoystickAction.update` calculations (#631)

* Move files to src and comply with the dart package layout convention

* Fixing widgets example

Co-authored-by: Serge Matveenko <lig@countzero.co>
Co-authored-by: Erick Zanardo <erickzanardoo@gmail.com>
2021-01-20 09:05:43 -03:00
692213d5a4 Properly propagate onMount and onRemove to children (#579)
* Fix rendering of children

* Game loop handles other restore

* Properly propagate onMount and onRemove to children

* Use BaseGame on gestures to minimize confusion

* Fix linting

* All children don't need preparation

* Add composability example

* gameRef might not be defined

* Add mustCallSuper

* isMounted on game

* Remove unused gameRef argument

* Made isMounted only modifiable by the component

* Move dartdoc to public isMounted

* Fix formatting
2020-12-21 12:42:45 +01:00
2f2ab1341e game widget (#533) 2020-12-09 10:10:12 +00:00
d09d2bd449 Add TextBoxConfig options and fix TextBoxComponent bugs (#534)
* Add TextBoxConfig options and fix TextBxoComponent bugs

* Add changelog entry

* Fix snackbar deprecation

* All examples to have publish to none

* One argument per line

* No explicit types for local variables

* Cache the width

* Fix formatting
2020-12-09 10:07:35 +00:00
0135f93493 Simplify BaseGame interactions 2020-11-15 01:18:49 +01:00
f97f20ab73 Vector2 for position and size on PositionComponent 2020-09-30 19:12:52 +02:00
50f8ffce3b Vector2 extension 2020-09-20 17:30:58 +02:00
01b3863353 address comments 2020-08-18 23:39:40 -04:00
997f36edc4 Part 3: Great Composed Component Refactor 2020-08-08 19:49:10 -04:00
6f836ee36c Extract each component to their own file 2020-08-03 13:08:41 -04:00
339ed06c3d Renaming remove to markToRemove 2020-06-23 18:52:52 -03:00
cd5ba3b906 Adding method to remove components from the list 2020-06-21 10:18:04 -03:00
c1d11d39a7 Adding missing renames 2020-05-18 15:50:20 -03:00
9293a6e4a9 Renamed doc to docs and minor language fixes 2020-05-10 16:51:49 +02:00
2bc4b7ad9d refactor classes in game.dart to separate files 2020-04-20 21:11:54 +02:00
4df24f71e7 PR suggestion 2020-04-14 08:57:44 -03:00
796191bedf Initial proposal for pause and resume engine 2020-04-10 15:12:23 -03:00
d6f2c5e960 Adding Component#onMount 2020-03-05 21:18:02 -03:00
ff68532bd8 PR suggestions 2020-01-30 19:21:01 -03:00
c506dd0553 Overlay initial commit 2020-01-30 19:13:04 -03:00
820fed2e52 bump svg dependency and fix example app to call ensure initialized method 2019-12-09 08:26:50 -05:00
15955e7d28 Fixing warnings and nits on our examples 2019-10-14 17:15:41 -04:00
580ccdecfc Typos in documentation and comments (#71) 2019-04-04 13:57:38 -03:00
b1a3d222a9 use final 2019-03-22 13:35:46 -03:00
a778069b72 fix widget as game (#59) 2019-03-18 09:29:12 -03:00
9c69937b5b Fixes build (tests), adding ditance method to position, fix linting (formating, quotes), removed uneeded new keywords everywhere 2019-03-10 15:17:53 -03:00
e396a78b25 following flutter pattern for examples 2019-01-02 23:19:57 -02:00
38030eb65c adding new example 2019-01-02 00:37:42 -02:00
63909a38a1 imporved example readme 2019-01-02 00:37:36 -02:00
ceea2229cb better example 2019-01-01 22:50:50 -02:00
76451853b2 adding examples folder with currently a single example regarding the new text components 2019-01-01 22:48:30 -02:00