Game Development Reference
If you lack inspiration, you can always make use of the Ramdomize button. You can
also ponder about the meaning of the word ramdomize , which is how it's spelled in
Particle Designer. The Urban Dictionary tells me that ramdom is a cooler form of ran-
dom. So, I'm guessing the developers just thought their randomizer to be extra cool.
Well, it's definitely inspiring even though it doesn't randomize all the available proper-
ties. For example, Ramdomize will never change the emitter type, the emitter location,
and many emitter type-specific parameters.
Once you find your inspiration, you'll want to slide the sliders and watch what happens
in the preview window. Take your time and tweak an effect until you like it. Careful,
though, because it's a very captivating, even mesmerizing, activity, and you'll easily
find yourself making new particle effects just for the fun of it.
Caution Be careful when designing particle effects! First, keep in mind that
your game has to calculate and render a lot of other things, too. If the effect
you're currently designing runs at 60 FPS in Particle Designer's preview win-
dow, that doesn't mean it won't kill your framerate when you use it in your
game. Always test new particle effects in your game and keep an eye on the
framerate. Also, make sure to run these tests on a device—in particular on older
devices! Your game's performance in the iPhone/iPad Simulator is often mis-
leading and thus must be regarded as completely irrelevant. The same goes for
the Particle Designer preview window.
Using Particle Designer Effects
I'm assuming that, hours later, you've made the perfect particle effect and now you'd
like to use that in cocos2d. I made mine, and the first step is to save the particle effect.
When you click the Save or Save As button in Particle Designer, you get the dialog
shown in Figure 9-9 .