Two Player Pong is finished!
So, after 5 days and 1233 lines of code, it is finally finished. I got around the collision detection problems I had yesterday by checking if the ball was only partially inside one of the sides of the paddle, then resetting the ball's position and reversing its velocity. This seems to work. I also spent a lot of the day changing the title screen so that it shows the controls for each player.
There is one problem that hasn't been ironed out and that is pausing the game when the window loses focus. What I have in there works when the window is minimised but not when you alt-tab away. Does anyone know how to solve this in SDL?
I have included the source code for anyone who wants to have a look. Any observations/comments of the game and/or code would be greatly appreciated.