Scale for PositionComponent (#892)

* Draft of PositionComponent.scale

* Use matrix transformations

* Update tests to take matrix transform into consideration

* Add tests for collision detection with scale

* Rename ScaleEffect to SizeEffect

* Use transform matrix to prepare canvas

* Fix scaledSizeCache

* Add changelog entries and docs

* Dartdoc on public access methods

* Update packages/flame/CHANGELOG.md

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

* Move cache classes to own directory

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
This commit is contained in:
Lukas Klingsbo
2021-08-06 21:59:52 +02:00
committed by GitHub
parent 4860cac87f
commit 54fbd260bc
31 changed files with 497 additions and 150 deletions

View File

@ -41,7 +41,7 @@ class SequenceEffectGame extends BaseGame with TapDetector {
curve: Curves.easeIn,
);
final scale = ScaleEffect(
final scale = SizeEffect(
size: currentTap,
speed: 100.0,
curve: Curves.easeInCubic,