Class: ParticleGameObjectSet

ParticleGameObjectSet() → {ParticleGameObjectSet}

new ParticleGameObjectSet() → {ParticleGameObjectSet}

Default Contsructor

a set of ParticleGameObjects

Source:
Returns:
New instance of ParticleGameObjectSet
Type
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
Source:
Returns:
Type
void

draw(aCamera) → {void}

Draw function called by GameLoop
Parameters:
Name Type Description
aCamera Camera Camera to draw too
Source:
Returns:
Type
void

update() → {void}

Update Function called by GameLoop
Source:
Returns:
Type
void