> OK, I'll re-word my explanation a little. You scrape the class for > special attributes and create instance attributes in > GameObject.__init__.
My problem with your solution is that the keys dict is created completely outside of any instance, precluding two players from responding to different sets of keys. Behaviors need to be assignable on the fly. The solution I posted is more explicit, more flexible, and pretty much as short as the 'scraping' version. If I'm still not getting it, please try to explain it one more time. It's been a while since I came across a new way to think about Python. I am also taking feature requests, though I make no promises about implementation. I had forgotten that Cocos2D existed until yesterday, which makes me think that this framework might be completely superfluous, but I think I'll continue to work on it because I'm enjoying it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" 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/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
