A two-dimensional collision engine for use inside DemoFrame.