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:

http://www.pygame.org/docs/tut/SpriteIntro.html.

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 ...

Get Python Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.