Skip to content

Emscripten support. #884

@agausmann

Description

@agausmann

wasm32-unknown-emscripten is a great target for compiling and running games using WebAssembly, particularly because it can produce web pages that run on most browser platforms instead of having to maintain and ship binaries for Windows, Linux, etc. separately.

There is a port of SDL2 officially maintained by the emscripten project. I have been using it off and on for about a year, bundling and statically linking it with this crate behind pistoncore-sdl_window

You can see the progress I've made on my rust-sdl2 fork, though it is hacked together and breaks other targets in its current state, that can theoretically be fixed. I'd love to eventually get it cleaned up and merged upstream.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions