[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] How to manage image source Rect()'s for units



I planned on having one image which had all the frames of the unit's
animation. Then based on its direction / or state, I would modify the
source rect's before blit.

I tried using a pygame.sprite.RenderPlain(), but I couldn't make it
use a source rect.

What's the best way to handle this? Can I use a sprite Group with
source rects? Maybe subclass .RenderPlain() ?

I looked for the .RenderPlain() implementation: I searched the
c:\python25 directory for files named "*.py* containing "RenderPlain",
but it came up with nothing.

-- 
Jake