Game Development Reference
In-Depth Information
this.particles = alive;
}
};
Hello fireworks
We have now covered all the basics necessary to create different particle systems. Now it's time to get
started with a simple example. Fireworks are definitely the “hello world” of particle systems. They look great,
illustrate the concept well, and are fairly easy to create (see Figure 6-2). So let's create some fireworks.
Figure 6-2. Fireworks demo in action
Designing the spark
The first step to create our fireworks is to design an image that we can use as a single particle (see Figure
6-3). I choose a simple eight by eight pixel radial gradient for this.
 
Search WWH ::




Custom Search