Learn Create Your Own Split Screen

Next Page

Bouncing off the bottom is the same principle, except we reverse the y-velocity, and leave the x-velocity alone.