juno
juno copied to clipboard
[Request] Emscripten Support
I have done very little work with Emscripten, but would lend a hand. Have you thought about web support at all?
@rnlf managed to get an earlier version of it working with emscripten which was pretty cool.
It is something I've considered trying again and will likely attempt during a weekend at some point. One thing I believe will be an issue is the audio system, which is written to interact directly with SDL's audio callback, implementing its own mixer and outputting raw PCM (see m_audio.c
and m_source.c
). As far as I understand emscripten expects you use something like OpenAL, or SDL's built in mixer (though I may be wrong, given my unfamiliarity with the platform) and thus audio would have to be disabled in the build.
It would be interesting to see how well the framework performs with an actual game using emscripten, and given that the framework uses software rendering and only has one external dependency (SDL), shouldn't be too much of a task to get going, with the exception of the audio system.
Awesome - I will will help where I can. That does make sense for the audio portion being disabled.
It's nice there aren't many external dependencies to wrangle.