On Fri, Apr 13, 2012 at 4:02 PM, Nitneroc <[email protected]> wrote:

> Hi, i'm a newbie in cocos2d and I don't know that much about python.
>
> I was wondering lately why cocos2d use tuples for sprites' position,
> velocity and acceleration attributes (which are used by sprite.do(Move())),
> and not Vector2d.
> Vector2d support convenient operations, and I think it would make my code
> prettier, but since I'm a newb, I guess there is probably a good reason i'm
> not aware of.
>
> Thanks
>



I think (but may be wrong) that no explicit design decision was taken:
python don't have a standard vector 2d class, so probably the initial code
 used tuples just for this.
After that, probably nobody has seen the need /
desire-to-redesign-and-convert-the-codebase

-- 
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