367 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
33f61d2bab Added fallback support for the web on the SpriteBatch API (#612)
* Added fallback support for the web on the `SpriteBatch` API

* Refactored the SpriteBatch class
2021-01-18 00:15:13 +01:00
c462dd6913 Making SpriteComponent and SpriteAnimationComponent follow the same standard for empty constructors (#620) 2021-01-17 11:31:15 -03:00
c8dc0b45c5 Removing initialDimensions and removeGesture methods (#627)
* Removing initialDimensions and removeGesture methods

* Removing wrongly commited folder

* PR suggestion
2021-01-17 11:21:37 -03:00
9890ad73ed Updated the widgets docs (#628)
Co-authored-by: Erick <erickzanardoo@gmail.com>
2021-01-17 11:17:15 -03:00
11d93c23b2 👌 Throw exception from parseAnchor in examples/widgets instead of returning null (#632) 2021-01-17 11:10:03 -03:00
16eaef3bb1 🏷 Backport some code improvements from the null-safety branch (#603) 2021-01-08 23:25:29 -03:00
af53438cd4 Refactor ParallaxComponent (#613)
* Simplified loading of ParallaxComponent

* Loading helpers for the different Parallax parts

And refactor how the delta velocity works

* Fix formatting

* Break out Parallax out of ParallaxComponent

* Fix docs

* Add extension for loading different parallax things on game

* Fix formatting

* Add loadParallaxComponent extension

* Fix formatting
2021-01-06 21:07:31 +01:00
90fe03dc32 Debug mode to be variable on BaseGame (#608)
* Debug mode to be variable on BaseGame

* Update debug mode docs

* Fix typo

Co-authored-by: Erick <erickzanardoo@gmail.com>
2021-01-05 20:20:52 -03:00
089438c6c8 Improvements on the overlay API (#592)
* Adding game to overlaybuilder and visible overlays

* Fixing things

* Format

* Adding Renan's suggestions

* Removing wrongly commited integration test files

* Fixing active overlay when it is null

* Update CHANGELOG.md

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

* Adding some more changes from suggestions

* Removing unnecessary elvis operator

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
2020-12-30 16:37:41 -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
c784047ce5 Rename the layer folder to layers to be consistent with other similar packages (#576)
Co-authored-by: Erick <erickzanardoo@gmail.com>
2020-12-20 14:15:48 -03:00
bd8257402b Rename Dragable -> Draggable (#575)
* Rename Dragable -> Draggable

* Hide ambigious class

* Add changelog entry

* Update docs
2020-12-19 01:10:17 +01:00
6e56c23930 Some more linting 2020-12-12 15:42:42 -03:00
2e6da04930 Fixing lint 2020-12-12 15:17:40 -03:00
11511b98a8 Moving size from BaseGame to Game 2020-12-11 11:45:23 -03:00
2291002066 Update docs to take margin/padding into account 2020-12-09 10:22:36 +00:00
598436a3cb isDragged -> isDragging 2020-12-09 10:22:36 +00:00
463c30c374 Support dragable components 2020-12-09 10:22:36 +00:00
8d7dd46806 PR suggestions 2020-12-09 10:10:13 +00:00
f248835444 Fixing some examples 2020-12-09 10:10:13 +00:00
e4abb8f999 Removing minotaur article source from flame sourcebase 2020-12-09 10:10:13 +00:00
4f7c1065e5 Fixing animation example 2020-12-09 10:10:12 +00:00
2f2ab1341e game widget (#533) 2020-12-09 10:10:12 +00:00
4f989e49f5 Unify multiple render methods on Sprite 2020-12-09 10:10:12 +00:00
98ad12d269 Use relative imports 2020-12-09 10:10:12 +00:00
46554507a7 Tapables need to be handled in reversed priority order 2020-12-09 10:10:11 +00:00
8665172ed9 Take angle into account for taps 2020-12-09 10:10:11 +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
4a3f9778a4 destroy -> remove for components 2020-11-15 14:54:35 +01:00
2b9166db08 Test CombinedEffects that contain alternating effects 2020-11-07 15:21:21 +01:00
39c2663798 Function for set component to init state 2020-11-07 15:21:21 +01:00
bd22660800 Remove unnecessary part from SequenceEffect update 2020-11-07 15:21:21 +01:00
aaa35fb35a Fixed some Sequence bugs 2020-11-07 15:21:21 +01:00
d77c8d9c79 Duration can not be zero 2020-11-07 15:21:21 +01:00
51d0c6e77d Added missing rotate example 2020-11-07 15:21:21 +01:00
f74bda9b0d Shouldn't have an infinite effect inside of a CombinedEffect 2020-11-07 15:21:21 +01:00
1a6f53ce4b Use sequence in sequence example 2020-11-07 15:21:21 +01:00
2ff0484cb6 Use combination effect in example 2020-11-07 15:21:21 +01:00
c4e2049450 Generalize position effect tests 2020-11-07 15:20:40 +01:00
56baa115d8 Add duration argument to effects 2020-11-07 15:20:40 +01:00
319f967bbf Merge branch 'v1.0.0' into erick.ensure-animation-initialization 2020-10-26 17:47:33 -03:00
34a902f8cf Fixing params 2020-10-22 22:43:12 -03:00
b29e0a6f11 Refactor timer class 2020-10-22 20:15:08 +02:00
37ad12e9a0 . 2020-10-14 22:41:51 -04:00
b4b20655e0 Enable strong strict mode on dartalyzer 2020-10-14 22:36:14 -04:00
76c7d51991 Address comments 2020-10-14 20:10:01 -04:00
1c4ef5a2c0 . 2020-10-14 01:56:15 -04:00
1e285464f1 Improve IsometricTileMap and Spritesheet classes 2020-10-14 01:55:03 -04:00