In the case of a collision...
If the ball has collided with a wall:
- The location coordinates for the center of the ball were not modified in
the switch statement shown in
Listing 4.
The ball will:
- Be drawn in the same location as before
- Still touching the wall
- During the current iteration of the animation loop.