[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Wraparound with sprites
Aaron Maupin schrieb:
Malcolm Ryan wrote:
without any problems, but I can't figure how to do wrap- around, so 
that when a sprite goes off one side of the screen it  comes on the 
other. Can anyone offer any pointers?
Probably the easiest way is to just blit it twice (or three times, or 
four, depending on how many corners are involved).  If the wrap-around 
portion is going to be offscreen, you don't even have to bother with 
passing the .blit an area rect.
Hi
take a look, perhaps you can get an idea, how implement a wrap around. :-)
http://www.mypage.bluewin.ch/DR0ID/BETA/spacegame.zip
~DR0ID