I started on a 2d engine for pyglet 1.0 but ran into trouble with the
blit function being called far too often, so I decided to move over to
1.1 to use the batch draw function. Switching over has broken my way
of getting the right textures. Previously I opened a single large
texture and used get_region to save each 64x64 tile map in a list, I'd
then go through my map, and blit the corresponding texture.

I'm not really sure the best way of doing this now.. Do i make sprites
for each tile? I tried something along these lines, but I'm not sure
how to do this without creating an instance of every single tile for
every tile layer, instead of blitting the 5 instances of the tiles all
over the map. I'm also confused as to how one can pass a texture
region to a sprite as it's image, or is this not possible?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to