Page 6 of 21

Re: Love2D WebPlayer

Posted: Thu Mar 22, 2012 9:15 pm
by Nixola

Re: Love2D WebPlayer

Posted: Thu Mar 22, 2012 9:47 pm
by tsturzl
ghoulsblade wrote:i'd prefer a pure javascript box2d without adding flash as dependency if it isn't needed.
This way it might even work on some newer smartphones that might not have flash (iphone? but i don't know much here)
I think there is one implementation for js but it's low prio for me.
Let's aim for the 0.7.2 api for now where we have docs and stable release.
If you want to make the box2d binding in js/love.physics.js please do, i'd be a big help, and noone is working on that yet afaik =)
I'm often in love irc as ghoul/ghoulsblade if you need some help how to make the js-lua binding, also love.audio.js/love.graphics.js/love.font.js have examples of how to bind objects.
Oh, no. No flash dependancies. It would be a conversion of ActionScript from the box2D flash library to Javascript. Projects have done this, but only as of recently. All the javascript ports that are worth looking at are 2.2(and started with 2.2 so no 2.0 in repos), so I was saying that I could find a 2.0 version of the flash version and compile it to Javascript via a script similar to that of what youre using to do this.

Not saying I'm going to actually use Flash itself.

Re: Love2D WebPlayer

Posted: Thu Mar 22, 2012 11:40 pm
by ghoulsblade
ah ok, yeah, that'd work then =)
why not box2.2 if love0.8 is gonna use it anyway, lots of api breakage ?

Re: Love2D WebPlayer

Posted: Fri Mar 23, 2012 4:41 am
by tsturzl
ghoulsblade wrote:ah ok, yeah, that'd work then =)
why not box2.2 if love0.8 is gonna use it anyway, lots of api breakage ?
2.2 isn't backwards compatible to 2.0.

2.2 introduces Fixtures, a way to connect bodies and shapes. I'd implement 2.2, but I feel that it would be nice if Love2D Webplayer could play 0.7.2 games without modification. If you have 0.8.0 physics and you have 0.7.2 API then most likely neither 0.8.0 or 0.7.2 code will work. I just seems weird to me.

Re: Love2D WebPlayer

Posted: Fri Mar 23, 2012 4:52 am
by tsturzl
Also!

I feel stupid, the stable version of Box2DFlash is 2.0 box2D implementation.

I guess this is good I don't have to dig through the repo's for a 2.0 implementation.

Re: Love2D WebPlayer

Posted: Fri Mar 23, 2012 11:42 am
by SiENcE
another working sample (click me):

cursor-keys + space
Image

github-url lovejump

Re: Love2D WebPlayer

Posted: Fri Mar 23, 2012 4:59 pm
by josefnpat
SiENcE wrote:another working sample (click me):

cursor-keys + space
Image

github-url lovejump
remind me to remove that horrid game, lol. Nice to see it working though.

Re: Love2D WebPlayer

Posted: Fri Mar 23, 2012 8:41 pm
by Jasoco
It may be horrid, but it's still amazing given the situation. I can't imagine what BrowserLöve will be like in a few years. I still think we should make a NaCl version. Google is hoping to get it picked up by other browsers, and what better way than to have some solid awesome stuff. But I'll settle for anything that gets even half the performance of normal Löve.

Re: Love2D WebPlayer

Posted: Sat Mar 24, 2012 3:11 am
by tsturzl
Jasoco wrote:It may be horrid, but it's still amazing given the situation. I can't imagine what BrowserLöve will be like in a few years. I still think we should make a NaCl version. Google is hoping to get it picked up by other browsers, and what better way than to have some solid awesome stuff. But I'll settle for anything that gets even half the performance of normal Löve.
Go do it then :p I don't know much about NaCl and I think Javascript/HTML5 is a better route. You're the one who's got the ideas about it.

Go forth and do!

Re: Love2D WebPlayer

Posted: Sat Mar 24, 2012 3:19 am
by tsturzl
For the record I started implementing a Box2D javascript port.

I'm currently working on Body Objects. Next Shapes, then Collision, then Joints.