On 20/07/13 00:07, Fred wrote: > [...] > > Am I doing it the wrong way (and if so, could you please point me better > ideas) or is my goal clearly unreachable using Python + pyglet, and > would require C++/OpenGL code ?
You can do it with Python and Pyglet, you just need to use OpenGL: http://los-cocos.googlecode.com/svn/trunk/cocos/tiles.py See MapLayer._update_sprite_set and base class layer.ScrollableLayer.draw. Basically if keeps en memory a list of visible sprites and uses OpenGL's glTranslate for scrolling. Cocos2D code is a great example. I know it can be hard to read if you're not used to OOP (too many layers!), but I think it will help you with your problem. Regards, Juan -- jjm's home: http://www.usebox.net/jjm/ blackshell: http://blackshell.usebox.net/ -- You received this message because you are subscribed to the Google Groups "pyglet-users" 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/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
