HTML and CSS Reference
Step 4: Generate square particles
Finish your game by adding gd.template.Particle right after
gd.template.Cube with the following listing. For awesome special effects, you can
turn up the number of particles and turn off the particle limiter in Polygon.collide() .
Keep in mind that generating lots of particles can cause memory issues and frame-rate
Listing 9.31. run.js—Particle generation