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
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,
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
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