Lukas Klingsbo
4a265b8b36
Explicitly set what the effect modifies ( #585 )
...
* Explicitly set what the effect modifies
* Add changelog entry
2020-12-21 18:46:29 +01:00
Lukas Klingsbo
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
Lukas Klingsbo
fdb12f3265
Effect shouldn't affect non-used properties ( #583 )
...
* Effect shouldn't affect non-used properties
* Add changelog entry
* Check proper size variables
2020-12-20 21:28:18 +01:00
Lukas Klingsbo
7a81b029cb
Fix rendering of children ( #578 )
...
* Fix rendering of children
* Game loop handles other restore
2020-12-20 21:23:58 +01:00
Luan Nico
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
Lukas Klingsbo
bd8257402b
Rename Dragable -> Draggable ( #575 )
...
* Rename Dragable -> Draggable
* Hide ambigious class
* Add changelog entry
* Update docs
2020-12-19 01:10:17 +01:00
Yun Huang
ef213dc2e2
Passing SpriteAnimationData.loop out when constructing SpriteAnimationComponent ( #577 )
...
* Fix loop issue when creating SpriteAnimationComponent from SpriteAnimationData
* Update CHANGELOG
* Fixed linting issue
Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com >
2020-12-18 12:32:45 +01:00
Lukas Klingsbo
9d85e2e488
Fix ConcurrentModificationException on add in onMount ( #573 )
...
* Fix ConcurrentModificationException on add in onMount
* Fix ConcurrentModificationException for effects onComplete
* Wrap addLater block with isNotEmpty check
* Clear the addLater effects after adding them
2020-12-15 08:44:14 +01:00
Lukas Klingsbo
f42f775c97
Update PositionComponent docs ( #571 )
...
* Update PositionComponent docs
* Add changelog entry
* Add paragraph about toRect
* Comment about omitting super.render
2020-12-14 14:43:01 +01:00
Erick
615a8a1836
Merge branch 'develop' into erick.game-size
2020-12-14 10:31:54 -03:00
Erick Zanardo
9eb84bdd03
Fixing game on stable
2020-12-12 16:23:48 -03:00
Erick Zanardo
58cdb2b77d
PR suggestion
2020-12-12 16:08:18 -03:00
Erick Zanardo
bde8656510
Adding some fixes from PR comments
2020-12-12 18:28:00 +00:00
Erick Zanardo
11628b1edb
Adding tests and handling composed components
2020-12-12 18:28:00 +00:00
Erick Zanardo
48f3dee9a9
Adding immediate inclusion components
2020-12-12 18:26:52 +00:00
Erick Zanardo
4c9b89b849
Fixing tests
2020-12-12 18:26:52 +00:00
Erick Zanardo
e478296634
Implementing onLoad
2020-12-12 18:26:20 +00:00
Erick Zanardo
17cbe5221f
Adding proposal for onLoad
2020-12-12 18:23:42 +00:00
Erick Zanardo
11511b98a8
Moving size from BaseGame to Game
2020-12-11 11:45:23 -03:00
Lukas Klingsbo
f917920f45
Fix children update and rendering ( #565 )
...
* Fix children update and rendering
* Add changelog
* Fix formatting
* Add note about addChildren and remove assert
* Re-add child.rendered test
* Add MockCanvas and use it for composed test
2020-12-11 13:14:36 +01:00
Lukas Klingsbo
0aa78c585d
No need for re-assignment in GameWidget
2020-12-09 10:22:36 +00:00
Lukas Klingsbo
b2015999b7
Handle order of propagation for Dragable
2020-12-09 10:22:36 +00:00
Lukas Klingsbo
f3bca613ad
Revert "Debugging advanded detectors"
...
This reverts commit e9d99636579164bf815e15aa237ad0e4d46d6896.
2020-12-09 10:22:36 +00:00
Lukas Klingsbo
a0e301039d
Debugging advanded detectors
2020-12-09 10:22:36 +00:00
Lukas Klingsbo
2291002066
Update docs to take margin/padding into account
2020-12-09 10:22:36 +00:00
Lukas Klingsbo
463c30c374
Support dragable components
2020-12-09 10:22:36 +00:00
Renan
5a25f5f3f2
fix tappable ( #563 )
2020-12-09 10:22:36 +00:00
Erick Zanardo
8d7dd46806
PR suggestions
2020-12-09 10:10:13 +00:00
Erick Zanardo
4f7c1065e5
Fixing animation example
2020-12-09 10:10:12 +00:00
Erick Zanardo
5124ee6a79
Adding some documentation
2020-12-09 10:10:12 +00:00
Erick Zanardo
d4a799fd5d
New idea
2020-12-09 10:10:12 +00:00
Erick Zanardo
5a675ae630
Adding Sprite and SpriteAnimation easier ways of loading
2020-12-09 10:10:12 +00:00
Renan
2f2ab1341e
game widget ( #533 )
2020-12-09 10:10:12 +00:00
Luan Nico
4939b708dd
Address comments
2020-12-09 10:10:12 +00:00
Luan Nico
386ff94787
Address comments
2020-12-09 10:10:12 +00:00
Luan Nico
842e53b8ce
.
2020-12-09 10:10:12 +00:00
Luan Nico
e6f9801873
Changelog and docs
2020-12-09 10:10:12 +00:00
Luan Nico
4f989e49f5
Unify multiple render methods on Sprite
2020-12-09 10:10:12 +00:00
Luan Nico
f110fc228d
Fix imports to be relative
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
ddaa8b296e
Generic way of handling tap events
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
a47f62b018
Add explanation to assert
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
1c36b6ebf1
Use relative import
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
c4e2021b6c
Components with a gameRef doesn't require it as argument
...
For the addChild method
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
1ceb7d3ee6
Fix dartdoc of ParticleComponent
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
02e4563051
Update Components docs
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
98ad12d269
Use relative imports
2020-12-09 10:10:12 +00:00
Lukas Klingsbo
46554507a7
Tapables need to be handled in reversed priority order
2020-12-09 10:10:11 +00:00
Lukas Klingsbo
2818845f7e
propagateToChildren should not handle this, only children
2020-12-09 10:10:11 +00:00
Lukas Klingsbo
00e331b11e
Update BaseComponent description
2020-12-09 10:10:11 +00:00
Lukas Klingsbo
7f16df3a3a
Children should be private
2020-12-09 10:10:11 +00:00