11 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
18d04c13c0 Remove Resizable mixin (#589)
* Remove Resizable mixin

* Update examples and changelog

* Fixed formatting

* Remove unused import
2020-12-22 15:55:29 +01: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
c020383887 Linting 2020-12-12 18:28:00 +00:00
11628b1edb Adding tests and handling composed components 2020-12-12 18:28:00 +00:00
4c9b89b849 Fixing tests 2020-12-12 18:26:52 +00:00
2f2ab1341e game widget (#533) 2020-12-09 10:10:12 +00:00
8665172ed9 Take angle into account for taps 2020-12-09 10:10:11 +00:00
81eaf05b22 Use booleans instead of methods for simple values 2020-11-15 18:56:17 +01:00
ea64b239b5 Clarification comment about update after adding component 2020-11-15 01:18:51 +01:00
ce42f4d433 Add simple test for components in basegame 2020-11-15 01:18:51 +01:00