[pygame] Source rect for sprites in a RenderUpdate group

2010-04-16 Thread vincent.blazutti
Hi all, I'm trying to develop a little shoot'em up just for fun. The first try is a disordered code that can do the begining of the job, but who has many bug. So I'm trying to use an MVC pattern as explained in tut-design. The tricky point for me is that I've only used individual sprites and

Re: [pygame] Source rect for sprites in a RenderUpdate group

2010-04-16 Thread vincent.blazutti
With more detail (sorry if that's a noob problem) : I use a big picture with different view of the plane (the charactor), so I need to display only the good part of the surface. In my crappy version I have 3 attribute for the plane sprite : surface, source rect, and destination rect. Everytime