Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Box2d-editor json file example project — Gideros Forum

Box2d-editor json file example project

ndossndoss Guru
edited February 2012 in General questions
I made an example project using box2d-editor (http://code.google.com/p/box2d-editor/) to see how hard it would be to take it's output (it can output in xml, json, or binary format) and use it in gideros. The example uses the json4lua library (http://json.luaforge.net/) to read the json output and create box2d shapes.

The code at: https://bitbucket.org/ndoss/gideros_playground/src/15caf7affdbf/box2d_editor_example

I still don't quite know how to align images w/ the box2d output ... (see the commented out code in main.lua).

Likes: Stoffe, gorkem

+1 -1 (+2 / -0 )Share on Facebook

Comments

Sign In or Register to comment.