mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 16:05:47 +08:00
feat: adding ParticleSystemComponent (#1489)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user