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 have a few games under your belt!
In the next chapter, we will review all that we have learned in this book, and we will also take a look at some other ways that Python is used out in the world, as Python is a very useful language to know. See you...