[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] tween engines in pygame?



Anialiased circular figures will be included in the next release of pygame, I believe.

Images in PyGame are called "surface"s.  Images can be overlaid upon one another (surface.blit()) to build up more and more complex visuals.  The screen itself can be thought of as an image, and blitting stuff to it works exactly the same way.  To answer your question, you'll have to blit the cards on the screen in certain places according to time. 

This is simpler than it sounds.  surface.blit(image,position) draws an image (image) on a surface (surface) at the desired position (position).  To move the cards around, let surface be the screen (try surface = pygame.display.set_mode(#blah)) and draw the card (image) on the screen at a changing position to animate the card's movement. 

Hope this helps,
Ian