Summary

Congratulations on building your first game! There are so many things that you learned to do. The greatest thing about code, though, is that there are many ways to do everything. Some ways are easier to understand but not as efficient as other ways. Some code is very efficient but might not be easily understood by another programmer. The best code is both easy to understand and written in the most efficient way possible.

Throughout the previous chapter, we used a combination of code that was easy to understand, but may not have been as efficient as possible. This is because we were learning many new principles in pygame, and things, such as collision detection, can be challenging to code. You may decide to do things differently after you ...

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.