Game Development Reference
/** The maximum relative velocity of this firework. */
/** The damping of this firework type. */
* The payload is the new firework type to create when this
* firework's fuse is over.
/** The type of the new particle to create. */
/** The number of particles in this payload. */
/** The number of payloads for this firework type. */
/** The set of payloads. */
Rules are provided in the code, and they are defined in one function that controls
the behavior of all possible fireworks. This is a sample of that function:
Excerpt from src/demos/fireworks/fireworks.cpp
// Go through the firework types and create their rules.
1, // type
3, 5, // age range
cyclone::Vector3(-5, -5, -5), // min velocity
cyclone::Vector3(5, 5, 5), // max velocity
0.1 // damping
// ... and so on for other firework types ...