Remove old effects system (#1157)

* Remove old effects system

* Add changelog entry
This commit is contained in:
Lukas Klingsbo
2021-12-03 15:02:25 +01:00
committed by GitHub
parent fe162c6d90
commit 790b8f73dd
61 changed files with 892 additions and 3588 deletions

View File

@ -63,19 +63,23 @@ class SimpleShapesExample extends FlameGame with HasTappables {
final component = randomShape(tapPosition);
add(component);
component.add(
MoveEffect(
path: [size / 2],
speed: 30,
isAlternating: true,
isInfinite: true,
MoveEffect.to(
size / 2,
StandardEffectController(
duration: 5,
reverseDuration: 5,
infinite: true,
),
),
);
component.add(
RotateEffect(
angle: 3,
speed: 0.4,
isAlternating: true,
isInfinite: true,
RotateEffect.to(
3,
StandardEffectController(
duration: 1,
reverseDuration: 1,
infinite: true,
),
),
);
}