mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user