Re: [pygame] Wraparound with sprites

2007-02-07 Thread Chuck Arellano
Hello. You might be interested in how I implemented it for my game Herder. The source may be downloaded from the page below: http://www.donationcoder.com/Forums/bb/index.php?topic=6894.msg48198#msg48198 The way it's implemented in this program is actually quite simple: if self.fpx <= -16

Re: [pygame] Wraparound with sprites

2007-02-06 Thread DR0ID
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,

Re: [pygame] Wraparound with sprites

2007-02-06 Thread Aaron Maupin
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

[pygame] Wraparound with sprites

2007-02-06 Thread Malcolm Ryan
I'm implementing a simple asteroids clone in PyGame, using sprites for the player's ship and the asteroids. I can draw and move the sprites 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