> For the drawing point of view would be negligible.
> But looks as a bit of code bloat.
> If you are are trying to provide mouse click detection, probably an
> approach like the one in samples\mouse_elastic_box_selection.py
> can be better suited.
Imagine than insead of simple green circles (from
mouse_elastic_box_selection.py), I need to draw spaceships.
And each spaceship is made of several sprites.
Depending on which part of the spaceship the user click, the result
will be different.
Then, seems natural to handle the mouse_press on each spaceship.
no ?
That means each spaceship can check if it was clicked, and then, which
part (if any).

of course, it's still possible to iterate over all the spaceships and
then, parts of the selected spaceship, from a controlLayer.
maybe this is more the cocos way!

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to