Generalize position effect tests

This commit is contained in:
Lukas Klingsbo
2020-10-28 23:01:39 +01:00
parent 56baa115d8
commit c4e2049450
9 changed files with 113 additions and 113 deletions

View File

@ -60,7 +60,7 @@ class MyGame extends BaseGame with TapDetector {
));
orangeSquare.addEffect(RotateEffect(
radians: (dx + dy) % (2 * pi),
angle: (dx + dy) % (2 * pi),
speed: 1.0, // Radians per second
curve: Curves.easeInOut,
isInfinite: true,