Hey all,
Thanks to Shaktool here at the forums, I've written up a couple tutorials on making levels in Box2D using InkScape and updated the parser to support Bezier curves. You can now import curves directly into the Box2D engine for your levels and even specify the # of segments for all curves either through a default value or through line-width.
The first tutorial uses the outdated parser, but explains level creation and floors/ceilings in InkScape.
http://www.ezqueststudios.com/blog/creating-levels-box2d/
The second tutorial uses the new parser and explains the values you pass to the parsing function.
http://www.ezqueststudios.com/blog/box2d-svg-parser-curves/
Both of these tutorials have copy-paste code, examples, pictures, and source files.
Shaktool also said he's also cleaning up the code and (is uploading it to the Box2DFlash SVN) *has agreed to upload it to the Box2DFlash SVN. Many kudos to him for his help.
Thanks to Shaktool here at the forums, I've written up a couple tutorials on making levels in Box2D using InkScape and updated the parser to support Bezier curves. You can now import curves directly into the Box2D engine for your levels and even specify the # of segments for all curves either through a default value or through line-width.
The first tutorial uses the outdated parser, but explains level creation and floors/ceilings in InkScape.
http://www.ezqueststudios.com/blog/creating-levels-box2d/
The second tutorial uses the new parser and explains the values you pass to the parsing function.
http://www.ezqueststudios.com/blog/box2d-svg-parser-curves/
Both of these tutorials have copy-paste code, examples, pictures, and source files.
Shaktool also said he's also cleaning up the code and (is uploading it to the Box2DFlash SVN) *has agreed to upload it to the Box2DFlash SVN. Many kudos to him for his help.