19 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
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
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
9293a6e4a9 Renamed doc to docs and minor language fixes 2020-05-10 16:51:49 +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
15955e7d28 Fixing warnings and nits on our examples 2019-10-14 17:15:41 -04: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