Polygon pipeline tool for 2D games