ParticlesComp:
The particles component.
emitter: position: Vec2
Relative position of the emitter
direction: number
Relative direction of the emitter
position: Vec2
Relative position of the emitter
direction: number
Relative direction of the emitter
emit(n: number): void
Emit a number of particles
onEnd(cb: ()=>void): void
Called when the emitter expires