mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
Add flame_lint to examples (#1090)
This commit is contained in:
@ -35,26 +35,35 @@ class RotateEffectExample extends FlameGame {
|
||||
),
|
||||
);
|
||||
compass.arrow
|
||||
..add(RotateEffect.to(
|
||||
..add(
|
||||
RotateEffect.to(
|
||||
Transform2D.tau,
|
||||
StandardEffectController(
|
||||
duration: 20,
|
||||
infinite: true,
|
||||
)))
|
||||
..add(RotateEffect.by(
|
||||
),
|
||||
),
|
||||
)
|
||||
..add(
|
||||
RotateEffect.by(
|
||||
Transform2D.tau * 0.015,
|
||||
StandardEffectController(
|
||||
duration: 0.1,
|
||||
reverseDuration: 0.1,
|
||||
infinite: true,
|
||||
)))
|
||||
..add(RotateEffect.by(
|
||||
),
|
||||
),
|
||||
)
|
||||
..add(
|
||||
RotateEffect.by(
|
||||
Transform2D.tau * 0.021,
|
||||
StandardEffectController(
|
||||
duration: 0.13,
|
||||
reverseDuration: 0.13,
|
||||
infinite: true,
|
||||
)));
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user