Hi, i need to get a transition effect with 2 scenes in a
game with pyglet. Being a SDL/pygame programmer, i don't know
if my strategy is suitable in pyglet:
I think I need a copy reference to buffer video, blit every game
object in this buffer an later, when the user change to a new
scene, show a gradual transition between 2 buffers (one to
last scene, and other to new scene).
So, there are any variant to image blit method with a destination
image parameter?, some like:
buffer = create_auxiliary_buffer()
alternative_blit(game_object_image, buffer, x, y)
buffer.blit(0, 0)
window.flip()
Note that i can't blit directly with double buffer driven by
pyglet, like:
image.blit(x, y)
window.flip()
because i want to show a transition effect with 2 scenes, and
i not find other way -- maybe this is my real problem :|
Thanks.
--
Hugo Ruscitti
www.losersjuegos.com.ar
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---