List of loaders for RUBE scenes

General discussion about the R.U.B.E editor
msm1982
Posts: 17
Joined: Tue Aug 20, 2013 4:13 pm

Re: List of loaders for RUBE scenes

Post by msm1982 » Sun Jul 13, 2014 7:51 pm

petrc wrote:Is there any planned/in progress loaders for phaser.js and unity?
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 fast

iforce2d
Site Admin
Posts: 860
Joined: Sat Dec 22, 2012 7:20 pm

Re: List of loaders for RUBE scenes

Post by iforce2d » Wed Jul 16, 2014 4:49 pm

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

msm1982
Posts: 17
Joined: Tue Aug 20, 2013 4:13 pm

Re: List of loaders for RUBE scenes

Post by msm1982 » Fri Jul 18, 2014 11:36 pm

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

bunnyhero
Posts: 1
Joined: Sun Oct 05, 2014 5:26 am

Re: List of loaders for RUBE scenes

Post by bunnyhero » Wed Oct 08, 2014 3:11 am

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.
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.

thanks!


dmagunov
Posts: 16
Joined: Tue Dec 10, 2013 3:40 pm
Contact:

Re: List of loaders for RUBE scenes

Post by dmagunov » Thu Dec 25, 2014 5:47 pm

Hello guys,

Here my version of RUBE testbed for emscripten box2djs: Demo | Article | Source code

iforce2d
Site Admin
Posts: 860
Joined: Sat Dec 22, 2012 7:20 pm

Re: List of loaders for RUBE scenes

Post by iforce2d » Fri Dec 26, 2014 6:43 am

dmagunov wrote:Hello guys,

Here my version of RUBE testbed for emscripten box2djs: Demo | Article | Source code
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
Posts: 16
Joined: Tue Dec 10, 2013 3:40 pm
Contact:

Re: List of loaders for RUBE scenes

Post by dmagunov » Fri Dec 26, 2014 10:26 pm

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.
Hello Chris,

Already renamed to 'emscripten-box2djs', Thanks!

dmagunov
Posts: 16
Joined: Tue Dec 10, 2013 3:40 pm
Contact:

Re: List of loaders for RUBE scenes

Post by dmagunov » Fri Jan 09, 2015 8:15 pm

Hello guys!

The last javascript port of box2d - box2d-html5 for RUBE testbed is here: Demo | Article | Source code

iforce2d
Site Admin
Posts: 860
Joined: Sat Dec 22, 2012 7:20 pm

Re: List of loaders for RUBE scenes

Post by iforce2d » Sat Jan 10, 2015 9:17 am

dmagunov wrote:box2d - box2d-html5 for RUBE testbed is here:
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.

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

Post Reply