Collision system for 2D web games.