feat: adding ParticleSystemComponent (#1489)

This commit is contained in:
Erick
2022-03-26 12:20:31 -03:00
committed by GitHub
parent a3b7de0acd
commit 6891eaaa24
8 changed files with 231 additions and 50 deletions

View File

@ -96,8 +96,8 @@ class ParticlesExample extends FlameGame with FPSCounter {
add(
// Bind all the particles to a [Component] update
// lifecycle from the [FlameGame].
ParticleComponent(
TranslatedParticle(
ParticleSystemComponent(
particle: TranslatedParticle(
lifespan: 1,
offset: cellCenter,
child: particle,