lib/tmx_ext/object.rb
def poly_vec2s
      points.map do |point|
        x,y = point.split(",").map {|p| p.to_i }
        CP::Vec2.new(x,y)
      end.reverse
    end
def poly_vec2s
      points.map do |point|
        x,y = point.split(",").map {|p| p.to_i }
        CP::Vec2.new(x,y)
      end.reverse
    end
A TMX object currently has an array of points in a format
 list of strings. This will convert the points into
 list of CP::Vec2 objects which can be used to create the
 proper CP::Shape::Poly for the Object.

 @note this assumes that we want to convert the points into
   a format of vec2s specifically for a CP::Shape::Poly
   shape.