Engine: cloudflare/doom-wasm, a WebAssembly port of Chocolate Doom. Source: https://github.com/cloudflare/doom-wasm (commit 65e0d3ae2ffa604155eebd96ed40da6567bd08f4) Upstream: https://github.com/chocolate-doom/chocolate-doom Licence: GNU General Public License v2 (see ENGINE-COPYING.md) Modifications to the upstream source (this is GPL source for the shipped binary): 1. src/doomtype.h: see ENGINE-PATCH-doomtype.diff. Upstream makes the `boolean` type a 1-byte bool in any file that happens to include before doomtype.h (g_game.c does, through SDL) and a 4-byte enum everywhere else. player_t then had two different sizes, players[] was allocated too small, and the globals gameepisode and deathmatch landed inside it. The result was a level that loaded with no player, a frozen camera and a garbled view. The patch makes `boolean` the same enum in every file. 2. configure.ac (EMFLAGS), one line: removed -gsource-map, SAFE_HEAP, STACK_OVERFLOW_CHECK and --source-map-base; ALLOW_MEMORY_GROWTH=1; TOTAL_MEMORY=128MB; STACK_SIZE=5MB (the Emscripten 3.1 default is 64KB); -O3. Build: Emscripten 3.1.74 (docker image emscripten/emsdk:3.1.74, with autoconf, automake, libtool and pkg-config added), scripts/build.sh, with CRLF line endings stripped from the sources. Outputs: websockets-doom.js, websockets-doom.wasm.