(Using latest revision 1271.) The code for particle system seems to suggest that each individual particle can have its own size:
1. The *size_var* variable 2. *self.particle_size* array on line 208 in *particle.py* (whichi is only referred to in one other location) which uses *size_var* However this is clearly not being used. The size is decided by the function *get_scaled_particle_size *which does not use *size_var.* But the real question is, what is the behaviour supposed to be? 1. Individual particles have their own size (with parameter *size_var*) which do not change once the particle has been created. 2. The entire particle system has a fixed size decided by *size *and *size_var *from the very beginning. 3. The entire particle system has the size change randomly using *size_var* somehow. The second option is quite redundent - the user would just set a random size at the start by himself. The third option is easy enough to implement but is just weird. So I believe the first option is the correct behaviour. >From the code the drawing seems to be done with the single line >*glDrawArrays(GL_POINTS, 0, self.total_particles)* (line 290) and the point size is set on line 257 before that. So, I'm not sure if you can draw differently sized particles efficiently. -- You received this message because you are subscribed to the Google Groups "cocos2d discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cocos-discuss. For more options, visit https://groups.google.com/groups/opt_out.
