I've been using the excellent R.U.B.E Box2D editor (https://www.iforce2d.net/rube/
) with a view to using it as a level/game editor for my Gideros projects.
One of my first steps is to create a loader that may be extended for any Box2D based game. I'm sharing my development effort here for anyone that may be interested, or that it may help.
I'm also opening this up as a collaborative effort project. Please feel free to make or suggest your own improvements or additions via branches and please provide feedback, ideas or report issues using the BitBucket repository tools.
(p.s. it may take me a while to get the BitBucket settings for the repository set correctly - please bear with me!)
Here's the repository: https://bitbucket.org/BigWinston/girube
. It contains the source, an issue tracker and a wiki that I'll be putting any documentation into.
It seems number are expressed in hexadecimal, I solved that using tonumber(value, 16) function to translate hexadecimal to decimal number. But when I load some polygon I get the error "Polygon should be convex and should have a CCW winding order" when fixture body is created. ¿Have you get this error previosly?
The hexadecimal representation is the 4 bytes that make up the raw IEEE float value, so tonumber(value, 16) will not even be close to the correct value