The code from Programming 2D Games by Charles Kelly is used under a Creative Commons Attribution 3.0 Unported License