-
- All Implemented Interfaces:
public final class PartyEmitter extends BaseEmitter
Emitter is responsible for creating a certain amount of particles per tick.
Creating x amount of particles in a certain time frame
Creating x amount of particles until the threshold maxParticles is met
-
-
Constructor Summary
Constructors Constructor Description PartyEmitter(EmitterConfig emitterConfig, Float pixelDensity, Random random)
-
Method Summary
Modifier and Type Method Description List<Confetti>createConfetti(Float deltaTime, Party party, CoreRect drawArea)If timer isn't started yet, set initial start time Create the first confetti immediately and update the last emitting time BooleanisFinished()-
-
Constructor Detail
-
PartyEmitter
PartyEmitter(EmitterConfig emitterConfig, Float pixelDensity, Random random)
-
-
Method Detail
-
createConfetti
List<Confetti> createConfetti(Float deltaTime, Party party, CoreRect drawArea)
If timer isn't started yet, set initial start time Create the first confetti immediately and update the last emitting time
-
isFinished
Boolean isFinished()
-
-
-
-