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 »

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 »

That is awesome! Great job! If I could, I would star your repo a thousand times.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Love.js - A Direct Emscripten Port

Post by Davidobot »

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!
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Love.js - A Direct Emscripten Port

Post by Jack5500 »

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: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Love.js - A Direct Emscripten Port

Post by slime »

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: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Love.js - A Direct Emscripten Port

Post by Jack5500 »

But that would require several changes in the Löve sourcecode, right? So it would be two casebases to maintain?
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: Love.js - A Direct Emscripten Port

Post by bobbyjones »

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

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 »

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 »

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 6 guests