HTML and CSS Reference
In-Depth Information
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
drops.
Listing 9.31. run.js—Particle generation
Search WWH ::




Custom Search