Nethack for the web
See build.yml workflow for exact steps.
Current build is from NetHack-3.6.7_Released (ed600d9f0)
Install Emscripten v2.0.34 (0d24418f0eac4828f096ee070dae8472d427edaa)
and activate.
NodeJS v16 is required to fix ERR_INVALID_URL error
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install 2.0.34
./emsdk install node-16.20.0-64bit
./emsdk activate 2.0.34
./emsdk activate node-16.20.0-64bit
source ./emsdk_env.sh
Summary of the changes in lib/fixes36.diff
to make Nethack 3.6 (most will not be needed anymore for 3.7 release)
.js
and use node to run it (only 3.6)mount_nodefs.js
since it's required to run them (see UTIL_CFLAGS
) (only 3.6)WEB_GRAPHICS
for win/web
+ some config changes? (mostly from NetHackJS + BrowserHack)
unixmain.c#authorize_wizard_mode
iflags.suppress_price--;
above inventory update in shk.c
(only 3.6)To run tools/generate.js
, remove type: module
from package.json
. To lazy to find a solution for it.
nethack_default.png
- https://nethackwiki.com/wiki/File:3.6.1tiles32.pngNevanda.png
- https://nethackwiki.com/mediawiki/images/2/26/Nevanda.pngdawnhack_32.bmp
- https://www.deviantart.com/dragondeplatino/art/DawnHack-NetHack-3-6-1-UnNetHack-5-1-0-416312313Chozo32-360.png
- https://nethackwiki.com/wiki/File:Chozo32-360.png