On 06/08/13 16:13, "Juan J. Martínez" wrote: > On 04/08/13 22:53, Fred wrote: >> [...] >> >> So my two questions : >> 1) Is this idea (modify texture rather than sprite) sufficient to >> improve performances ? >> 2) how to blit a texture on another ? > > What about subclassing Sprite? I we had a similar thread no so long ago > but I couldn't find it in the archives :(
Well, ignore my advice :) You could be using an image.Animation and define the frames as image.AnimationFrame. My suggestion of using a texture atlas is OK though. Then create a Sprite using that Animation as image and render all your sprites using a batch. Sometimes I tend to reinvent the wheel instead of using what Pyglet provides. Sorry! 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.
