I've been picking away at a layout engine for Box2D for some games we are working on. I recently had to document it for internal use, so I figured I might as well release it too. Coming here I see there is already an excellent tool that does this, oops : (. I'm not sure how similar or different this one is, but here it is anyway...
http://debreuil.com/v2d
This is based on a swf parsing engine I wrote a while back, so it works at the file format level to get the info out. That mostly means it is very extensible, but probably a bit complex for casual use. The code that converts things is fairly straight forward though, written in C#, so that is probably pretty hackable.
The Flex project there is still a work in progress (though fully functional). I will be upgrading it to allow creating and destroying defs at runtime, refactor it a bit, and adding runtime drawing of the movieclips (so they are mallable at runtime). I will also be generating a file format for this (rather than generated code) so it is portable to other runtimes -- first up will probably be XNA.
All the source (for swf parsing and this engine) is available at http://www.codeplex.com/swf.
Must be said, Box2D is totally awesome, so thanks for it Erin. And thanks skatehead the great conversion job. Flash is fun again : ).
http://debreuil.com/v2d
This is based on a swf parsing engine I wrote a while back, so it works at the file format level to get the info out. That mostly means it is very extensible, but probably a bit complex for casual use. The code that converts things is fairly straight forward though, written in C#, so that is probably pretty hackable.
The Flex project there is still a work in progress (though fully functional). I will be upgrading it to allow creating and destroying defs at runtime, refactor it a bit, and adding runtime drawing of the movieclips (so they are mallable at runtime). I will also be generating a file format for this (rather than generated code) so it is portable to other runtimes -- first up will probably be XNA.
All the source (for swf parsing and this engine) is available at http://www.codeplex.com/swf.
Must be said, Box2D is totally awesome, so thanks for it Erin. And thanks skatehead the great conversion job. Flash is fun again : ).