Classes and objects – very important next steps!
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.
Note
To learn more about Sprites, it is best to refer to the documentation:
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.
Note
Here are some resources that will help you learn about classes and objects:
http://www.tutorialspoint.com/python/python_classes_objects.htm