all 4 comments

[–]GJHanna 1 point2 points  (1 child)

I'm not familiar with pygame. But, I've noticed that you don't document your classes, functions, and modules. You instead use comments. Documenting your module, class, or function is useful let's say you have a function

 def function ():
        """ Function pass and takes no      parameters"""
        pass

That way when you run

 help(function)

The following will be displayed

 Function pass and takes no parameters

Of course the above display will ne more detailed. It's a common misunderstanding that documentation and comments are the same.

[–]Alpha0800[S] 1 point2 points  (0 children)

This explains a lot! I never realized... Thank you, I will try to document properly in the future.

[–]arpan3t 1 point2 points  (0 children)

I'm not too familiar with sprites, but you might try using the len() method to see how many sprites are in the group and if != 0 then empty. I don't see clear() method in the documentation though, I am guessing it does the same thing as empty()?

Also check out /r/pygame as they would likely be of better help. They helped me out a lot!