Now, we are going to add a very simple collision detection capability to the sprites.
This is not a precise collision detection algorithm. We are going to use a very simple technique to give some life to the game. However, we will improve our collision detection algorithms later in the following chapters. Our current focus is on a good object-oriented design for the sprites and on the modification of the game loop.
We want the aliens to show a different color when they collide with the ship. We want to see the changes necessary to add some logic to the game. We will do that by following these steps: