Love.js - A Direct Emscripten Port

Discuss any ports of LÖVE to different platforms.
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: Love.js - A Direct Emscripten Port

Post by Ranguna259 » Sun Feb 07, 2016 6:29 pm

Awesome, now all we need is a new online love editor (since the old one broke down..)
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.

User avatar
OttoRobba
Party member
Posts: 104
Joined: Mon Jan 06, 2014 5:02 am
Location: Sao Paulo, Brazil

Re: Love.js - A Direct Emscripten Port

Post by OttoRobba » Sun Feb 07, 2016 8:36 pm

That is awesome! Great job! If I could, I would star your repo a thousand times.

User avatar
Davidobot
Party member
Posts: 1182
Joined: Sat Mar 31, 2012 5:18 am
Location: Cambridge, UK
Contact:

Re: Love.js - A Direct Emscripten Port

Post by Davidobot » Sun Feb 07, 2016 8:56 pm

My internet is a bit slow today, so github was downloading at 8 KB/s and I didn't have time to mess around with it just yet.
I just want to say thank you for your hard work, I hope this will turn into an official port someday!
My projects: Raycaster, love.js v11.3 port
itch page: link
My website: link
My library: LovelyMoon

User avatar
Jack5500
Party member
Posts: 149
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Love.js - A Direct Emscripten Port

Post by Jack5500 » Mon Feb 08, 2016 9:28 am

Looks good, but judging from your github issues you seem to be stuck on the thread part, which is essential for several features.
Is that right?

User avatar
slime
Solid Snayke
Posts: 2898
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Love.js - A Direct Emscripten Port

Post by slime » Mon Feb 08, 2016 12:25 pm

Jack5500 wrote:you seem to be stuck on the thread part, which is essential for several features.
Is that right?
Emscripten doesn't support C threads at all. LÖVE internally uses C threads for a couple things (some audio decoding, as well as video decoding) – plus [wiki]love.thread[/wiki] uses them.
The audio and video decoding could be moved to the main thread though, at the cost of some framerate when they do large amounts of work.

User avatar
Jack5500
Party member
Posts: 149
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Love.js - A Direct Emscripten Port

Post by Jack5500 » Mon Feb 08, 2016 12:45 pm

But that would require several changes in the Löve sourcecode, right? So it would be two casebases to maintain?

bobbyjones
Party member
Posts: 728
Joined: Sat Apr 26, 2014 7:46 pm

Re: Love.js - A Direct Emscripten Port

Post by bobbyjones » Mon Feb 08, 2016 2:47 pm

I had an idea although it's probably not a good one but if a JavaScript code path was used for audio and video they probably will be done by the browser in a separate thread. But idk how browsers do those kind of things.

Edit: and if it doesn't the codepath could use webworkers maybe. I'm sure there has to be a way to make audio and video happen on a separate thread. Probably would be more involved though.
Do you frequently have great ideas but immediately lose them? Check out the MVP for my website called IdeaVault. It is designed to solve that problem. Desktop browsers only currently.

User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Love.js - A Direct Emscripten Port

Post by T-Bone » Mon Feb 08, 2016 4:51 pm

Tanner wrote:
T-Bone wrote:Does not work on IE on WP8.1, but that's sort of expected :P I'll try it on Edge once I upgrade to Windows 10.
Yeah.... :/ Internet Explorer is, well, it's something.
It's not as bad as its reputation, lots of complex Javascript and WebGL stuff work in it actually. It'll be interesting to see how much better Edge is at following standards.

User avatar
Tanner
Party member
Posts: 166
Joined: Tue Apr 10, 2012 1:51 am

Re: Love.js - A Direct Emscripten Port

Post by Tanner » Mon Feb 08, 2016 5:25 pm

I've update the repo with a fix for streaming audio. You'll notice that Mr. Rescue now sounds a lot better: http://tannerrogalsky.com/mrrescue/ (You may need to refresh that page if you've visited it before).

The change is under 20 lines of code, for those of you concerned about maintainability.
Video is still TODO.

User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Love.js - A Direct Emscripten Port

Post by Ulydev » Mon Feb 08, 2016 6:58 pm

Just wanted to pass by and say a huge thanks for this project. Does it support shaders, and/or networking through sockets?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests