[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Drawing Transparent Sprites
On further experimentation: I tried giving each sprite a reference to
the world display, which let it draw directly to the screen using
self.location offset by the display's clipping rectangle. Ie., if the
sprite was at [100,0] and the screen was currently showing world[200,0]
in its upper-left corner, the sprite would be blitted to [-100,0] of the
screen and get ignored. That seems to work and to continue running at >
100 FPS, though it's inelegant.
Kris