I've added a new Crowd class to CJLibrary CS4.
The Crowd class can manage the behavior of a group of objects according to a single behavior function.
This behavior function is defined by users.
Each object's reference is held by an Entity object.
An Entity object has another data field that holds "personal parameters" corresponding to its object.
These parameters are used to determine the individual behavior of an object through the behavior function.
You can create your custom crowd behavior by designing your own behavior functions.
Wednesday, January 7, 2009
Tuesday, January 6, 2009
Monday, January 5, 2009
Now ZContainer is back for Flash Player 10!
Since using the build-in z property forces ANYTHING to be cached as bitmap,
therefore toasting the CPU,
creating a mere 2.5D effect with billboards using the z property is not a good idea.
I've rewritten the ZContainer class from scratch just to circumvent this problem.
The new ZContainer is a 2.5D engine,
which can be in either perspective-projection or orthographic-projection mode.