Constructor
new ParticleEmitter(px, py, num, createrFunc) → {ParticleEmitter}
Parameters:
| Name | Type | Description |
|---|---|---|
px |
float | X world coordinate position for this emitter |
py |
float | Y world coordinate position for this emitter |
num |
integer | number of Particles to emit |
createrFunc |
function | the function used to generate the Particles |
- Source:
Returns:
a new ParticleEmitter instance
- Type
- ParticleEmitter
Methods
emitParticles(pSet)
Create a random number of Particles using mParticleCreator function
Parameters:
| Name | Type | Description |
|---|---|---|
pSet |
ParticleSet | ParticleSet to append the Particles created by this ParticleEmitter |
- Source:
expired() → {boolean}
Returns whether this ParticleEmitter has finished emitting
- Source:
Returns:
true if all particles have been emitted
- Type
- boolean