mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
chore: Fix some spelling errors (#2146)
This commit is contained in:
@ -259,19 +259,19 @@ class ParticlesExample extends FlameGame {
|
||||
}
|
||||
|
||||
/// Particle which is used in example below
|
||||
Particle? reusablePatricle;
|
||||
Particle? reusableParticle;
|
||||
|
||||
/// A burst of white circles which actually using a single circle
|
||||
/// as a form of optimization. Look for reusing parts of particle effects
|
||||
/// whenever possible, as there are limits which are relatively easy to reach.
|
||||
Particle reuseParticles() {
|
||||
reusablePatricle ??= circle();
|
||||
reusableParticle ??= circle();
|
||||
|
||||
return Particle.generate(
|
||||
generator: (i) => MovingParticle(
|
||||
curve: Interval(rnd.nextDouble() * .1, rnd.nextDouble() * .8 + .1),
|
||||
to: randomCellVector2()..scale(.5),
|
||||
child: reusablePatricle!,
|
||||
child: reusableParticle!,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user