R.U.B.E editor for Box2D

It's been a long time coming, but the R.U.B.E (Really Useful Box2D Editor) is available now. This is a dedicated Box2D editor with many useful features, some listed below, and it's great for making game levels, prototyping and fine-tuning Box2D scenes.

Some features:
- create, translate, rotate, scale: bodies, fixtures, vertices, joints and images
- comprehensive undo/redo support
- built-in player to check the simulation
- automatic polygon decomposition
- vertex drawing
- revolute, prismatic, distance, rope, wheel joints
- copy and scale entire structures of bodies
- easily create chains of bodies
- mirror bodies and fixtures
- attach images to bodies (or use as background)
- fully scriptable (Angelscript)
- built-in script editor with auto-compile and error highlighting
- customizable menus
- sample loaders for C++, Javascript (box2dweb), Java
- integrated context help
- video tutorials

More info at: http://www.iforce2d.net/rube
Rube has come along nicely. I look forward to moving away from Inkscape for level design after my game ships.
It's amazing! It looks something similar to my BoxEditor, but obviously with much more powerful features and more detailed settings!
Hand-drawn game level sounds wonderful!
After I ship this game, I'd be interested in talking with you two in particular about collaborating. We should be able to add the ability to sync with the editor from a viewer client, including images/animations.
It looks great and powerful!
pTymN wrote:
After I ship this game, I'd be interested in talking with you two in particular about collaborating. We should be able to add the ability to sync with the editor from a viewer client, including images/animations.


In the case of BoxEditor, it's written mainly for understanding Box2D, and one could make tests easily with it. I used cocos2dx for rendering. And a C++ loader available only:

Code:
// loader code. use this as a listener, implementing method IPhysicsLoaderCallback::OnBodyLoaded(BodyData*)

// load the template list file (template.json) first.
//...
CPhysicsLoader::load(m_sceneFile.c_str(), m_world, this);

void CSampleLayer::OnBodyLoaded( b2Body* body, CPhysicsSprite* sprite ) {
    // one could use the sprite custom data here or later
      BodyData* bodyData = sprite->m_bodyData;

      if (bodyData->m_templateName) {
         if (strcmp(bodyData->m_templateName, "fish") == 0) {
                            ....

                            if (bodyData.m_fieldValues[ID_FISH_FIELD_LIFE] > 100)
                                ....
                        }
                }

    // CPhysicsSprite extends CCSprite
    addChild(sprite);
}
The best you can do for syncing at the moment is to 'quick-export' which is just a keyboard shortcut to repeat the last export (JSON) that was done, and then another program can reload it. I'm hoping to add a post-step where you can set up a batch file or shell script to do something after export, eg. upload to a server maybe. I had not thought much about images, but perhaps some kind of bundling feature might be useful, to collect all images in the scene and place them in the same folder or something.

Original thread: https://box2d.org/forum/viewtopic.php?t=8981