Chapter 17 - Collision Detection and Input
Chapter Content and Source Code
Read Chapter 17 - Collision Detection and Input
Download the source for collisionDetection.py.
Download the source for pygameInput.py.
Or you can copy and paste the code from here:
Online Diff Tool
If you've typed in the source code, but are seeing errors, you can compare your code to the book's code with the online diff tool for collisionDetection.py and pygameInput.py.
Copyright 2008, 2009 (c) by Albert Sweigart
"Invent Your Own Computer Games with Python" 2nd Edition is free to copy and distribute under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.