Love2D WebPlayer (WebGL)

Discuss any ports of LÖVE to different platforms.
Post Reply
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Love2D WebPlayer

Post by Nixola »

Last edited by Nixola on Thu Mar 22, 2012 9:55 pm, edited 1 time in total.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: Love2D WebPlayer

Post 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.
User avatar
ghoulsblade
Party member
Posts: 111
Joined: Sun Oct 31, 2010 6:11 pm

Re: Love2D WebPlayer

Post 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 ?
love-android - gamejams
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: Love2D WebPlayer

Post 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.
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: Love2D WebPlayer

Post 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.
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Love2D WebPlayer

Post by SiENcE »

another working sample (click me):

cursor-keys + space
Image

github-url lovejump
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: Love2D WebPlayer

Post 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.
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Love2D WebPlayer

Post 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.
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: Love2D WebPlayer

Post 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!
User avatar
tsturzl
Party member
Posts: 161
Joined: Fri Apr 08, 2011 3:24 am

Re: Love2D WebPlayer

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

Who is online

Users browsing this forum: No registered users and 39 guests