logo       

Re: Drawing Transparent Sprites: msg#00181

python.pygame

Subject: Re: 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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise