Immediately, you will need to start learning about classes and objects. These are great ways to simplify what would otherwise be repeated code. For example, there is a class in pygame called Sprites
. The pygame.Sprites
module has classes that make it easier to manage different game objects.
To learn more about classes and objects, it is a good idea to search the Internet for things such as object-oriented programming (this is the kind of programming that Python uses) and, more specifically, classes and objects. If you find classes and objects confusing, do not worry. This is a concept that takes some getting used to.
Here are some resources that will help you learn about classes and objects:
http://www.tutorialspoint.com/python/python_classes_objects.htm