Source for this build
The engine is DXX-Redux, a Descent II source port, compiled to WebAssembly with Emscripten. The browser changes are published here under the same license as the engine.
Files
- redux-web.patch — every engine change, against DXX-Redux commit
9fd90f03. The browser glue lives ind2/arch/web/. - build.py — the build script (Emscripten 3.1.46, Ninja).
- d2loader.js and index.html — the page: file import, browser storage, CD audio, boot.
- COPYING-DXX.txt — Parallax / D1X license for the engine.
- LICENSE-PhysFS.txt — zlib license for PhysFS 3.2.0.
- d2synth.src.js and synth-build.mjs — the MIDI music player, bundled with spessasynth_lib 4.4.2 (Apache-2.0). Sound bank: GeneralUser GS by S. Christian Collins (license).
Rebuilding
- Clone
https://github.com/dxx-redux/dxx-reduxintosrc/redux, check out9fd90f03and apply the patch withgit apply redux-web.patch. - Clone
https://github.com/icculus/physfstagrelease-3.2.0intosrc/physfs. - Install the Emscripten SDK 3.1.46 and Ninja, set
EMSDKto the SDK folder, then runpython build.py. The output isweb/d2x.jsandweb/d2x.wasm. - For the MIDI player, run
npm install [email protected] [email protected]next tod2synth.src.js, thennode synth-build.mjs.
The game page downloads its game resources automatically and caches them in your browser. Optional folder imports also support other copies and custom missions.