This is something I'd like as well. Phaser is using p2js now, has anyone made a loader for this yet? I've started the process myself, but to be honest I was still learning box2d when I picked up RUBE and have no experience using p2js, so my progress is not blazingly fastpetrc wrote:Is there any planned/in progress loaders for phaser.js and unity?
List of loaders for RUBE scenes
Re: List of loaders for RUBE scenes
Re: List of loaders for RUBE scenes
About Phaser, I spent a couple of days learning the basics and set up a loader for RUBE scenes using box2dweb: http://www.iforce2d.net/rube/loaders/phaser/basic.html
It's a bit rough, in that touch positions are not quite correct due to the offset of the div not being taken into account properly (at least I think that's what's happening). On desktop Chrome at least, I think everything should be working fully. I'll probably tidy this up, add a few more example scenes and add it to the sample loaders sometime.
*** EDIT ***
I made a more detailed example showing simple platform game (ported from the 'planetcute' scene that is included in the sampler loaders of Cocos2d, SFML etc
http://www.iforce2d.net/rube/loaders/ph ... tcute.html
This example is fully commented, but the supporting files could use some attention.
Source: http://www.iforce2d.net/rube/loaders/ru ... sample.zip
It's a bit rough, in that touch positions are not quite correct due to the offset of the div not being taken into account properly (at least I think that's what's happening). On desktop Chrome at least, I think everything should be working fully. I'll probably tidy this up, add a few more example scenes and add it to the sample loaders sometime.
*** EDIT ***
I made a more detailed example showing simple platform game (ported from the 'planetcute' scene that is included in the sampler loaders of Cocos2d, SFML etc
http://www.iforce2d.net/rube/loaders/ph ... tcute.html
This example is fully commented, but the supporting files could use some attention.
Source: http://www.iforce2d.net/rube/loaders/ru ... sample.zip
Re: List of loaders for RUBE scenes
iforce2d wrote:About Phaser, I spent a couple of days learning the basics and set up a loader for RUBE scenes using box2dweb: http://www.iforce2d.net/rube/loaders/phaser/basic.html
It's a bit rough, in that touch positions are not quite correct due to the offset of the div not being taken into account properly (at least I think that's what's happening). On desktop Chrome at least, I think everything should be working fully. I'll probably tidy this up, add a few more example scenes and add it to the sample loaders sometime.
*** EDIT ***
I made a more detailed example showing simple platform game (ported from the 'planetcute' scene that is included in the sampler loaders of Cocos2d, SFML etc
http://www.iforce2d.net/rube/loaders/ph ... tcute.html
This example is fully commented, but the supporting files could use some attention.
Source: http://www.iforce2d.net/rube/loaders/ru ... sample.zip
Thanks, that is awesome news, I will take a look when I have some time. Great great news if I can use RUBE with Phaser, thanks for the awesome work as usual
Re: List of loaders for RUBE scenes
a unity loader would be handy when porting a project from another system. right now i have an HTML5 game prototype that i would rather use unity for. i spent a lot of time fine-tuning a scene and don't want to have to try recreating it in unity by hand.iforce2d wrote:Not that I know of. Would it help to use RUBE output with Unity? I thought it had its own capable editor and methods of doing things.
thanks!
Re: List of loaders for RUBE scenes
Please, check my implementation of jsbox2d loader for RUBE scene:
Source code: https://github.com/dmagunov/Argadnet/tr ... ed/jsbox2d
Demo: http://argadnet.com/demo/rube_testbed/j ... index.html
Blog post about it: http://argadnet.com/jsbox2d-port-of-box ... -action_5/
Source code: https://github.com/dmagunov/Argadnet/tr ... ed/jsbox2d
Demo: http://argadnet.com/demo/rube_testbed/j ... index.html
Blog post about it: http://argadnet.com/jsbox2d-port-of-box ... -action_5/
Re: List of loaders for RUBE scenes
Nice work! I recall from my time using it that Emscripten was not that easy to work with By the way, it's a bit hard to tell from your pages which demos are using Emscripten, but it's always the ones called 'box2djs' right? There are so many similar names for js ports of Box2D that I feel something like 'box2d-emscripten' might have made it easier to differentiate.dmagunov wrote:Hello guys,
Here my version of RUBE testbed for emscripten box2djs: Demo | Article | Source code
Re: List of loaders for RUBE scenes
Hello Chris,iforce2d wrote: Nice work! I recall from my time using it that Emscripten was not that easy to work with By the way, it's a bit hard to tell from your pages which demos are using Emscripten, but it's always the ones called 'box2djs' right? There are so many similar names for js ports of Box2D that I feel something like 'box2d-emscripten' might have made it easier to differentiate.
Already renamed to 'emscripten-box2djs', Thanks!
Re: List of loaders for RUBE scenes
Hello guys!
The last javascript port of box2d - box2d-html5 for RUBE testbed is here: Demo | Article | Source code
The last javascript port of box2d - box2d-html5 for RUBE testbed is here: Demo | Article | Source code
Re: List of loaders for RUBE scenes
Wow, you are really cranking out the code! It looks like gravity scale is not being implemented in any of the loaders you have - in the 'joint types' example the 'B' body in the top right should have gravity scale of zero, so that it settles in a position above the ground. You can check the expected behavior in the RUBE player view.dmagunov wrote:box2d - box2d-html5 for RUBE testbed is here:
What are your impressions on comparing these Javascript implementations? I like that box2d-html5 is hand-ported and the most up-to-date, with all joint types implemented. Speed-wise, I don't see a whole lot of difference between them. For some reason, the domino tower example behaves a bit strange in most Javascript implementations (box2d-html5 especially). I commented about this here a while ago if you're interested:
https://code.google.com/p/box2d-html5/i ... etail?id=1