new ParticleGameObjectSet() → {ParticleGameObjectSet}
Default Contsructor
a set of ParticleGameObjects
Returns:
New instance of ParticleGameObjectSet
Methods
addEmitterAt(p, n, func) → {void}
the function to call to generate particles
Parameters:
Name | Type | Description |
---|---|---|
p |
vec2 | Position of Emitter in WC space |
n |
Number | Number of particles to be emitted |
func |
function | Creater Function |
Returns:
- Type
- void
draw(aCamera) → {void}
Draw function called by GameLoop
Parameters:
Name | Type | Description |
---|---|---|
aCamera |
Camera | Camera to draw too |
Returns:
- Type
- void
update() → {void}
Update Function called by GameLoop
Returns:
- Type
- void