Here is how I think the code for the Sprite class in cocos should look like:
http://pastebin.com/m4b9b7d5f Well, the changes are very few and even a little silly. Just added a image_anchor property on the sprite that uses the get and set methods that were used on the transform_anchor of sprites before. On the __init__ method I set image anchor to the default value that was already being calculated (w/2, h/2) and set transform_anchor and children_achor to 0, 0 by using the anchor property of cocosnode that sets both. If there's a better way for me to contribute code, please tell me. I already mentioned that I don't have a lot of free time, but I do enjoy programming on my free time and it's likely that I will be using cocos more and more and I would like to help to make it better, so if you want another contributor on the project I will be happy to join the dev team :) -- Kao Cardoso Félix Página pessoal: http://www.inf.ufrgs.br/~kcfelix Blog: http://kaofelix.blogspot.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
