TannerRogalsky / love.js

LÖVE ported to the web using Emscripten
MIT License
493 stars 53 forks source link

Build instructions #52

Open pablomayobre opened 7 years ago

pablomayobre commented 7 years ago

Is there a place with details on how to build this from source?

TannerRogalsky commented 7 years ago

Not really but it shouldn't be too hard. There are PRs for both megasource and love on bitbucket. Pull those down, use my branch of emscripten (it has various patches) and then you can use the build_lovejs.sh script after changing the paths.

pablomayobre commented 7 years ago

What about Lua and friends? What dependencies and versions are you currently using? or is that part of the megasource PR?

TannerRogalsky commented 7 years ago

Yeah, nothing special. Just what's in megasource.

pablomayobre commented 7 years ago

Do you know if it would be possible to incorporate bitops? It's normally bundled with LuaJIT but works with other non JIT versions, it would be cool to have it available in this port. EDIT: It should be possible, it's not using anything weird (macros everywhere)

Another alternative would be the Lua 5.2 bit32 library which can also be compiled as a separate module

TannerRogalsky commented 7 years ago

Additional dependencies are a matter for the love core team. The intention here is to get this functionality in the main repo so I'm aiming for as few changes as absolutely necessary.

That said, if you wanted to fork and add that library, it should be relatively straightforward.

pablomayobre commented 7 years ago

I see sounds good!