pygame: transparency question

2012-05-29 Thread Scott Siegler
Hello, I have a surface that I load an image onto. During a collision I would like to clear out the images of both surfaces that collided and show the score. Is there a function call to clear a surface with an image? One way I was thinking was to fill the surface with a color and then set tha

Help doing it the "python way"

2012-05-24 Thread Scott Siegler
Hello, I am an experienced programmer but a beginner to python. As such, I can figure out a way to code most algorithms using more "C" style syntax. I am doing something now that I am sure is a more python way but i can't quite get it right. I was hoping someone might help. So I have a list

pygame.Rect question

2012-04-08 Thread Scott Siegler
Hello, I am new to Python and began using pygame to start some game programming. I was hoping someone could help me out with something that seems simple but is really confusing me. I am creating a rect and then using the attributes of the rect to set the size and location. I set rect.left to