Saturday, August 23, 2008

Sakura 2

View online

Download source

This time, the SakuraFall effect is achieved not by ZContaienr but Emitter.
Emitter lacks the perspective camera functionality which ZContainer possesses indeed.
But Emitter has better efficiency in return.
I was just trying the new addChildMode property of Emitter v1.1.0.
(Yes, Emitter is updated to version 1.1.0, go to the Emitter GoogleCode project homepage to download it!!)

This new property can either be the value "top", "bottom", or "random".
"Top" means new particles are added from the top of the display list, and "bottom" means otherwise.
"Random" mode adds new particles at random depths in the display list.
So you can see some sakura petals are inbetween two blue spheres in the demo.

No comments: