This is just a quick demo of how to use realistic bouncing, so feel free to remix. Arrow keys for blue box and wasd for red box. Credit to Wikipedia for the equations for elastic collisions (basically how the boxes bounce). You can download and mess with the "weight" variable. Turn this into something interesting! Don't forget to love-it!