Test purpose
- Create a particle world object
- Add user-defined attributes to the particle world object - check that appropriate messages print
- Create a particle Emitter entity
- Check to see that the Emitter entity can lock to the mouse cursor
- Check that particles respond to the gravity force, when applied (include gravity)
- Check the effect of changing the world object's tickMultiplier (world speed) attribute
- Change the maximum and minimum colors; check that the changes are reflected in the particle's colors (testing the Color range functionality)
- Check the effects of changing the following emitter/particle attributes: historyLength; generationRate; killAfterTime; killAfterTimeVariation; lifespan; life variation; range (x, y, z); rangeFrom (x, y, z)
- Check that the canvas backgroundColor attribute can be updated (background color)
- Navigate away from the web page (open another tab in the browser) and, a few seconds later, navigate back to the page - check that the animation resets and starts, and does not freeze the page
Touch test: should work as expected
Annotated code